Save and exit

R

Rick Brandt

Matt Dawson said:
Is it possible to create a save and exit button within VBA?

Save what exactly and exit what exactly?

To save the current record on the current form and then exit Access...

Me.Dirty = False
DoCmd.Quit
 
J

J. Goddard

What do you mean by "create and save" the button? If you mean that you
are modifying a form using VBA, the answer is "Yes" - but it is not
quick and easy. Why not create an invisible button in form design, and
then make it visible as needed?

John
 
M

Matt Dawson

Sorry I didn't make myself clear.
I meant a save and exit command button to simply save the record and exit
the form.
 
Top