M
mike
Hi all,
How do you pass a variable to a function and the function
returns something. I know this is a dump question, but I'm
new to VB.
Let says:
Dim a As Integer
Dim b As Integer
Dim c As integer
a=5
b=5
c=Sum(a,b) //This call the sum function and the funtion
returns the answer to c
Public Function Sum(first As Integer,second As Integer)
** What do I need to add here to return the total to c.
I'm placing this function in the Modules section in
access. **
End Function
Thnaks for the help.
mike
How do you pass a variable to a function and the function
returns something. I know this is a dump question, but I'm
new to VB.
Let says:
Dim a As Integer
Dim b As Integer
Dim c As integer
a=5
b=5
c=Sum(a,b) //This call the sum function and the funtion
returns the answer to c
Public Function Sum(first As Integer,second As Integer)
** What do I need to add here to return the total to c.
I'm placing this function in the Modules section in
access. **
End Function
Thnaks for the help.
mike