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

Adding records and being able to go to previous

Status
Not open for further replies.

BrazilTechie

Programmer
Nov 13, 2002
88
0
0
BR
Is there a way I could prompt the user with a blank dataentry form and still give him a change to go to the previous (last) and already existing record?

I have been using:

DoCmd.OpenForm stDocName,,,,acFormAdd

Thanks in advance.
 
Try opening the form with the following code behind your command button...

DoCmd.OpenForm "frmYourFormName", acNormal
DoCmd.GoToRecord , , acNewRec

This will put you on a new record, but you can still go to any other record.

Tom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top