Clear a data entry form

Oyster

Registered User.
Local time
Today, 14:31
Joined
Nov 16, 2004
Messages
34
My data entry form has a button that allows the record to be saved. However, after saving the record, the form doesn't allow a new record to be added. The new form just sits there with the previously entered information in it. How do I go to a new record?
 
You need to create an Add new record button and use this command...
Code:
DoCmd.RunCommand acCmdRecordsGoToNew
 
Isn't there a way to make it automatically do that once the Save button is pressed?

Thanks!!!
 
You can do it by combining the two commands. My instinct is to advise that you do not do that for it could confuse the user.

Code:
DoCmd.RunCommand acCmdSaveRecord
DoCmd.RunCommand acCmdRecordsGoToNew
 
I tried adding a "Add Record" button to my form with the code:
DoCmd.RunCommand acCmdRecordsGoToNew behind it. Now the "form" thinks I'm trying to add duplicate records when I press the "Add Record" button.

Thanks!!! :D
 

Users who are viewing this thread

Back
Top Bottom