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

Save/Add New on a form

Status
Not open for further replies.

TammyT

Programmer
Sep 17, 2003
183
US
Okay, sorry to bug y'all with this one, but my "cheat sheets" are on a CD at work, & I'm at home! Simple question:

On a form, once the data is entered, users need to choose between "Done" (okay, I can handle that one!) and "Add Another Item". On the add another - I need the code for saving the record info entered & then clearing the form to add a new record - I just can't remember the text for it.

Thanks!
 
How are ya TammyT . . .

. . . and this;
Code:
[blue]   DoCmd.RunCommand acCmdSaveRecord
   DoCmd.RunCommand acCmdRecordsGoToNew[/blue]


Calvin.gif
See Ya! . . . . . .
 
I usually cheat if I forget the code with command buttons, and add a button using the wizard. When its done I open up the code its generated and use it. Lazy me.
 
Thanks, AceMan!! Yeah, I knew that!

Zor - I've done that as well, but wouldn't apply for this need. I did use it earlier, though, for the simple "pick a name in the drop-down & go to that record" option!
 
TammyT . . .

[blue]So the status of this thread is? . . .[/blue]

Calvin.gif
See Ya! . . . . . .
 
Oh - sorry - yeah, that did it! Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top