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
 
G

Guest

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
 

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

Top