G
Guest
Hello. I hope I can explain this correclty. I am using Access 2003 and I
need to use a variable in a loop to reference different field names. Here's
the basic code.
Dim myVar As Access.Control
Dim intCount as Integer
Do
Set myVar = Forms!field[intCount]
intCount = intCount + 1
Loop Whilte inCount < 5
So what I need to do is reference multiple fields, field1, field2, field3,
etc. using the above scheme, but I don't know how to do it. Any help would
be greatly appreciated.
need to use a variable in a loop to reference different field names. Here's
the basic code.
Dim myVar As Access.Control
Dim intCount as Integer
Do
Set myVar = Forms!field[intCount]
intCount = intCount + 1
Loop Whilte inCount < 5
So what I need to do is reference multiple fields, field1, field2, field3,
etc. using the above scheme, but I don't know how to do it. Any help would
be greatly appreciated.