Using variable as form field name

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi

I have two fields field1 and field2 on my form. Is there a way that the
field names can be accessed via variable so that choice of the actual field
to access is decided at runtime?

Thanks

Regards
 
I have two fields field1 and field2 on my form. Is there a way that
the field names can be accessed via variable so that choice of the
actual field to access is decided at runtime?

Yes, use a recursive function to iterate through all the controls on your
form to find the control with the name.
 

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

Similar Threads


Back
Top