Setting the setfocus

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm looping through a set of required fields in a table, if I find a blank
field I put out a message telling user the the field isn't setup, when the
user presses Ok I would like to set the focus to that field. Seeing that the
field name is a variable is there anyway to use it to set the focus. The
reason I'm doing it this way is because there are 6 fields but depending on a
number the user places in another field will determine how many of the 6
fields need to be filed in. Hopefully this is clear enough so someone can
help. Thanks
 
CD Tom said:
I'm looping through a set of required fields in a table, if I find a blank
field I put out a message telling user the the field isn't setup, when the
user presses Ok I would like to set the focus to that field. Seeing that the
field name is a variable is there anyway to use it to set the focus. The
reason I'm doing it this way is because there are 6 fields but depending on a
number the user places in another field will determine how many of the 6
fields need to be filed in. Hopefully this is clear enough so someone can
help. Thanks

Me(variableName).SetFocus
 
Thanks Rick that was easy, I tried about every combination but not that one.
Thanks again.
 

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

Back
Top