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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tab Control needs to Add a new record 1

Status
Not open for further replies.

horizonsoffsite

Instructor
Mar 31, 2005
8
US
I have a some code:
Private Sub Command26_Click()
Me.Tab2.SetFocus
End Sub
But I NEED it to open to a blank new record (just like adding a new record, the star key)
How can I accomplish this?
Thanks
 
Try This:
Code:
Private Sub Command26_Click()
    Me.Tab2.SetFocus
    DoCmd.GoToRecord , , acNewRec
End Sub

HTH
Lightning
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top