Hi,
So I have copied a piece of code from someone and want to adapt it for what i want to do but I'm stuck. (I'm a newbie so to you guyz this is probably relatively simple)
This is the code:
For i = 1 To 9
If IsNull(Me("txtStreetNumber" & i)) Then
Exit For
End If
And then the code carries on by insert the Me("FieldName" & i) in certain places. The code then finishes off with:
"Next i"
Right... all of this is bound to a click event on a button and the fields all refer to unbound text boxes on the form...
This is where my situation is different:
My fields arent unbound text boxes. They are fields in a form run from a table and they are in datasheet view.
So in a nutshell my question is:
How do I loop something unlimited times, per line.
Dang i hope that made sense
Thanks!
Ant
So I have copied a piece of code from someone and want to adapt it for what i want to do but I'm stuck. (I'm a newbie so to you guyz this is probably relatively simple)
This is the code:
For i = 1 To 9
If IsNull(Me("txtStreetNumber" & i)) Then
Exit For
End If
And then the code carries on by insert the Me("FieldName" & i) in certain places. The code then finishes off with:
"Next i"
Right... all of this is bound to a click event on a button and the fields all refer to unbound text boxes on the form...
This is where my situation is different:
My fields arent unbound text boxes. They are fields in a form run from a table and they are in datasheet view.
So in a nutshell my question is:
How do I loop something unlimited times, per line.
Dang i hope that made sense
Thanks!
Ant