Setting focus on the first field of a form

  • Thread starter Thread starter godfreydsouza
  • Start date Start date
G

godfreydsouza

Guest
I have a form for data entry with a button for new record (a macro "Go to new Record" is attached). I want the focus to be set to the first field when I click the button. Can somebody help me please. thanks
 
On the On Open event of the form you can write this code:

YourControlName.SetFocus
 

Users who are viewing this thread

Back
Top Bottom