R
Reidar
I have a form with 3 fields
field1, field2 and field3
Field3 should be the sum of field 1 and field2
The code is:
Function test(Tall1 As Double, Tall2 As Double) As Double
test = Tall1 + Tall2
End Function
Private Sub btnTest_Click()
Dim a As Double
Dim b As Double
Dim c As Double
a = Me.Field1
b = Me.Field2
c = test(a, b)
'*** error ***
Me.Field3 = c
'***********
End Sub
Why do I get an error when I try to get the result into field3 ?
reidarT
field1, field2 and field3
Field3 should be the sum of field 1 and field2
The code is:
Function test(Tall1 As Double, Tall2 As Double) As Double
test = Tall1 + Tall2
End Function
Private Sub btnTest_Click()
Dim a As Double
Dim b As Double
Dim c As Double
a = Me.Field1
b = Me.Field2
c = test(a, b)
'*** error ***
Me.Field3 = c
'***********
End Sub
Why do I get an error when I try to get the result into field3 ?
reidarT