CaroleTSullivan
asked on
Is it possible to set MSAccess form object properties using variable substitution?
I have an MSAccess form that have 10 label and 10 text fields. All fields are all set to invisible, and disabled, and depending on what selection the user selects, anywhere from 1 - 10 fields will become visible and the label captions will get set. My question is this...depending on the selection, the label captions will be set to different things. I want to set them using a loop. The labels are called lblparm1, lblparm2, lblparm3, lblparm4, etc. How can I set this using a loop or can I do that at all. Can I do something like this:
for x = 1 to number of parms in query
strlabel = "lblparm" & cstr(x)
strlable.caption = .........
next i
I tried this but it doesn't work. Is it possible?
for x = 1 to number of parms in query
strlabel = "lblparm" & cstr(x)
strlable.caption = .........
next i
I tried this but it doesn't work. Is it possible?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
why not make it as control array?
Carole ... are you wanting to set the label Captions from data in the query?
mx
mx
ASKER
thank you everyone!
Glad to help.
mx