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.
 
Back
Top