S
SheldonMopes
I have a form which contains 32 text boxes. Each needs to be updated
when the forms opens.
Method 1:
..
..
..
rst1.MoveNext
txtBox1 = DLookup("[nLink]" "tblNames","[strSystem] = " & rst1!field1)
rst1.MoveNext
txtBox2 = DLookup("[nLink]" "tblNames","[strSystem] = " & rst1!field1)
rst1.Movenext
etc..
..
..
For all 32 text boxes.
I would prefer:
do while nCounter <=32
txtBox% = DLookup("[nLink]" "tblNames","strSystem = " & rst1!field1)
rst1.MoveNext
nCounter = nCounter+1
Loop
% being the number assigned to nCounter
Am I missing something obvious ?
Thanks in advance for any help
when the forms opens.
Method 1:
..
..
..
rst1.MoveNext
txtBox1 = DLookup("[nLink]" "tblNames","[strSystem] = " & rst1!field1)
rst1.MoveNext
txtBox2 = DLookup("[nLink]" "tblNames","[strSystem] = " & rst1!field1)
rst1.Movenext
etc..
..
..
For all 32 text boxes.
I would prefer:
do while nCounter <=32
txtBox% = DLookup("[nLink]" "tblNames","strSystem = " & rst1!field1)
rst1.MoveNext
nCounter = nCounter+1
Loop
% being the number assigned to nCounter
Am I missing something obvious ?
Thanks in advance for any help