Add Record command button & cursor

M

Mommio2

Hi,
I used the built-in "Add Record" command button on my form. It works
fine except that when I click it and the empty form comes up for typing in
the new information, my cursor is not positioned at the first field. My tab
order is set correctly, and the cursor always goes to the right field for
other actions. It just does not work for the "Add Record" button. How can
I get this to happen? Thanks a bunch!
Mommio2
 
K

Ken Sheridan

In the form's Current event procedure set focus to the control if its at a
new record with:

If Me.NewRecord
Me.YourControlName.SetFocus
End If

Ken Sheridan
Stafford, England
 
M

Mommio2

Thanks! Both of your solutions (this one and Resizing Form) worked great!
I really appreciate your help!
Mommio2
 
Top