Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tab Index

Status
Not open for further replies.

PharmaFun

Programmer
Jul 30, 2003
30
CA
How would I structure an "On Lost Focus" command which directs the cursor to the 5th field in the tab index?

Thanks,
Dean
 
I used this solution a couple of years ago for a DB when I had to kick the user out of a subform when it was inappropriate for them to be there. Syntax for you should be similar. Just change the form and field names...

Forms!dev_master_frm1!dev_name.SetFocus

The key is the ... .SetFocue property for the field.

Hope this helps.

Richard
 
Thanks Richard, but that only sets the focus on a field by name. I have 10 forms, each where the 7th field is a different name. I was to set focus to the 7th field, irrespective of its name.

Dean
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top