Clearing a Form to Reset for New Record

manderson

New member
Local time
Today, 02:50
Joined
Jan 22, 2007
Messages
3
I have a form that opens blank using a macro to add a new record. I added a command button that saves the record. Can anyone help me with code I can add to the command button's "Save" event procedure that will clear the fields and reset the form in order to enter another new record? Thanks for any response in advance.
 
Look at

DoCmd.GoToRecord
 
Insert this code after the code you are using for saving your record

DoCmd.GoToRecord , , acNewRec
 
Actually, DoCmd.GoToRecord , , acNewRec will both save the current record and go to a new record, all by itself!
 

Users who are viewing this thread

Back
Top Bottom