G
Guest
Greetings,
I am trying to obtain the names of each control in a form. I was hoping
to use code similar to the following:
For each x in forms("DataEntry").controls
debug.print x.name
next x
However, I receive an "Object doesn't support this property or method" error
message when I attempt to execute this routine. Apparently there is not a
"name" property for the controls collection on a form. How can I obtain a
list of all controls on a form? Any suggestions?
Thanks in advance.
I am trying to obtain the names of each control in a form. I was hoping
to use code similar to the following:
For each x in forms("DataEntry").controls
debug.print x.name
next x
However, I receive an "Object doesn't support this property or method" error
message when I attempt to execute this routine. Apparently there is not a
"name" property for the controls collection on a form. How can I obtain a
list of all controls on a form? Any suggestions?
Thanks in advance.