Linnet
June 29th, 2001, 09:57 AM
I have a number of tables & forms, in each of which some (but not all) of the field / control names are structured in some way, eg:
A1, A2, A3, A4, A5, B1, B2 .... D4, D5.
I have to perform an identical operating on each in turn, and would like to capitalise on their naming structure, e.g.:
dim counter1 as integer, counter2 as integer
for counter1 = 1 to 5 ' or do while, or whatever
for counter2 = 1 to 5
'do something to me!<counter1><counter2>
next
next
Can this be done, and what is the syntax to denote some or all of the field / control name with a variable?
Thanks, Linnet
A1, A2, A3, A4, A5, B1, B2 .... D4, D5.
I have to perform an identical operating on each in turn, and would like to capitalise on their naming structure, e.g.:
dim counter1 as integer, counter2 as integer
for counter1 = 1 to 5 ' or do while, or whatever
for counter2 = 1 to 5
'do something to me!<counter1><counter2>
next
next
Can this be done, and what is the syntax to denote some or all of the field / control name with a variable?
Thanks, Linnet