Setting focus to field

davesmith202

Employee of Access World
Local time
Today, 02:22
Joined
Jul 20, 2001
Messages
522
I want to set the focus to my Name field whenever I click one of the navigation buttons. How?

Thanks,

Dave
 
By "name" do you mean a person's first name? "Name" is a bad field name to use because it's a reserved word. Do you mean a person's first name?

And when you say navigation buttons, do you mean the built-in nav buttons on the form, or buttons you've created to browse records?

Have you tried this?

Sub Form_Open(Cancel As Integer)

Forms!Person!FirstName.SetFocus

End Sub

Or am I completely off here?
 
after yuo move to the new record, the current event will occur

so in the current event you want something like

myname.setfocus
 

Users who are viewing this thread

Back
Top Bottom