J
James B
I'm having trouble with the user defined function in
access. I created a sumit function in modules and it
suppose to return the sum to the call variable. But some
how, I'm getting zero.
The code is:
In the module, I have this function
Public Function sumit(a as Long, b as Long)
sumit = a + b
end function
In one of the text box in the form I'm calling the sumit
function
..
..
..
Dim a as Long
Dim b as Long
a = 2
b = 3
Me.txtcal=sumit(a,b)
..
..
The function sumit did not return the correct answer and
Me.txtcal displays a zero. Help.......
Thanks
J.B.
access. I created a sumit function in modules and it
suppose to return the sum to the call variable. But some
how, I'm getting zero.
The code is:
In the module, I have this function
Public Function sumit(a as Long, b as Long)
sumit = a + b
end function
In one of the text box in the form I'm calling the sumit
function
..
..
..
Dim a as Long
Dim b as Long
a = 2
b = 3
Me.txtcal=sumit(a,b)
..
..
The function sumit did not return the correct answer and
Me.txtcal displays a zero. Help.......
Thanks
J.B.