Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OnClick I would like to go add record then go to First text box

Status
Not open for further replies.

elevins

Technical User
Jan 24, 2005
18
I have a form with 5 data entry text boxes and a add record button.
After I click the 'Add Record' command button I would like it to add the record then go to the first text box. This will make it easier for the people doing data entry. Any sugestions?
 
Maybe:
Me.Textbox.Setfocus

Pampers [afro]
Keeping it simple can be complicated
 
Were you just asking for the way to go to the first text box (Pamper's post will do that) or were you askig how to add a record AND go to the first box? This will do both:

Code:
Private Sub YourAddButtonName_Click()
     DoCmd.GoToRecord , , acNewRec
     Me.FirstTextBoxName.SetFocus
End Sub

The Missinglinq

There's ALWAYS more than one way to skin a cat!
 
Thanks Pampers that worked Great.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top