using string as code

rafa.toshio

New member
Local time
Today, 09:32
Joined
Feb 4, 2010
Messages
8
Hi everybody,

I have a problem. I need to use a string as code, something like this:

strFormName = "MyForm"
strControlName = "MyControl"

Form_strFormName!strControlName.Visible = False

Is it possible? Someone already had to do this?
 
Try this:

Forms(strFormName).Controls(strControlName).Visible = False
 

Users who are viewing this thread

Back
Top Bottom