I have an application in which different controls are available to different users. I do this using the visibility property. In my database, one field lists all of the controls on the user interface by name. Another field indicates whether this control should be visible.

The following will obviously not work:

'Read the control name into a string
strControlName = rs!.fields(0)

'Set the control's visibility
strControlName.visible = true

Is there a way that I can read the control name into a string and then create an executable statement like above? This way, I can put it into a loop instead of writing a ton of "IF" statements.