I have many fields whose names are a1, a2, a3 etc.
I want some code that will assign the field name to a variable then run the code then loop and assign the varible to the next field etc. I'm not doing it right and don't know what to do.
This simple thing without the loop doesn't work either.
dim strField as string
dim intField as integer
intField = 1
strField = "me.a" & intField.
if blah then strField.visible = false
VB doesn't consider the strfield as an object or something.
Do I need to dim strField as something else or am I going about this totally the wrong way?
Thanks
I want some code that will assign the field name to a variable then run the code then loop and assign the varible to the next field etc. I'm not doing it right and don't know what to do.
This simple thing without the loop doesn't work either.
dim strField as string
dim intField as integer
intField = 1
strField = "me.a" & intField.
if blah then strField.visible = false
VB doesn't consider the strfield as an object or something.
Do I need to dim strField as something else or am I going about this totally the wrong way?
Thanks