Using variable as form field name

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John

    #1

    Using variable as form field name

    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


  • Spam Catcher

    #2
    Re: Using variable as form field name

    "John" <John@nospam.in fovis.co.ukwrot e in
    news:#nUS2SfNHH A.4604@TK2MSFTN GP06.phx.gbl:
    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.

    Comment

    Working...