View Full Version : Setting focus on the first field of a form


godfreydsouza
02-22-2001, 05:42 AM
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

Neal
02-22-2001, 07:59 AM
On the On Open event of the form you can write this code:

YourControlName.SetFocus