D davesmith202 Employee of Access World Local time Today, 02:22 Joined Jul 20, 2001 Messages 522 Oct 15, 2008 #1 I want to set the focus to my Name field whenever I click one of the navigation buttons. How? Thanks, Dave
I want to set the focus to my Name field whenever I click one of the navigation buttons. How? Thanks, Dave
S SonicClang Registered User. Local time Yesterday, 20:22 Joined Oct 14, 2008 Messages 16 Oct 15, 2008 #2 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?
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?
gemma-the-husky Super Moderator Staff member Local time Today, 02:22 Joined Sep 12, 2006 Messages 16,048 Oct 15, 2008 #3 after yuo move to the new record, the current event will occur so in the current event you want something like myname.setfocus
after yuo move to the new record, the current event will occur so in the current event you want something like myname.setfocus