G
Garry Jones
I have 30 text boxes that I want to send to a function called Chknow. I
want to use a loop but do not know the syntax to refer to each box in
turn.
This is what I am trying, it can't find field.
----------------------------------------------------
Private Sub Form_Current()
Dim boxnum As Variant
boxnum = 1
Do While boxnum < 31
Chknow ["distans" & boxnum]
boxnum = boxnum + 1
Loop
End Sub
----------------------------------------------------
The textboxes are distans1, distans2, distans3, etc....
How do I add the number in each field in turn using code similar to my
loop?
Very happy for any help.
Garry Jones
Sweden
want to use a loop but do not know the syntax to refer to each box in
turn.
This is what I am trying, it can't find field.
----------------------------------------------------
Private Sub Form_Current()
Dim boxnum As Variant
boxnum = 1
Do While boxnum < 31
Chknow ["distans" & boxnum]
boxnum = boxnum + 1
Loop
End Sub
----------------------------------------------------
The textboxes are distans1, distans2, distans3, etc....
How do I add the number in each field in turn using code similar to my
loop?
Very happy for any help.
Garry Jones
Sweden