identifying controls

G

Guest

I am trying to cycle through the controls collection in a form and identify a
control by the name property. First I narrow the filed by identifying the
textboxes which is the type of control I am trying to identify. The purpose
of this is to find empty controls. When I use a Select case structure it
fails to stop at the appropriate case even though if I debug.print
control.name it gives me the appropriate name of the control.

Select Case Control.name
Case txtName 'actual control name
end select

Does not execute.
What am I missing?
Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top