G
Guest
I have a string array which has values for list box control names (it is a
string array because the values come from a form's OpenArgs value). I have
errors trying to use these names in a variable of type Control.
Dim cvarguement(2) as String
Dim cvlistbox as Control
cvarguement(0) = "Me!MyListBox"
cvstrlistbox = cvarguement(0)
Set cvlistbox = (cvstrlistbox)
returns object required error. Other attempts to use the set command to set
a Control type variable to a text variable's value gave a type mismatch error.
How can I set a Control type variable to a string value name of a control?
string array because the values come from a form's OpenArgs value). I have
errors trying to use these names in a variable of type Control.
Dim cvarguement(2) as String
Dim cvlistbox as Control
cvarguement(0) = "Me!MyListBox"
cvstrlistbox = cvarguement(0)
Set cvlistbox = (cvstrlistbox)
returns object required error. Other attempts to use the set command to set
a Control type variable to a text variable's value gave a type mismatch error.
How can I set a Control type variable to a string value name of a control?