Saving a record programmatically

davesmith202

Employee of Access World
Local time
Today, 23:08
Joined
Jul 20, 2001
Messages
522
I have a form with a command button that runs a couple of update queries. But before these queries are run, I would like to save the current record. These queries will be using the data the current record and so it needs saving.

How do I save the record programmatically?

Thanks,

Dave
 
Use the button query wizard to build yourself a button using the wizard's Record Save option. Then look at the code it built to see how you do that from some other button.
 
Just add

If Me.Dirty Then Me.Dirty = False

to the button's code before it runs anything.
 

Users who are viewing this thread

Back
Top Bottom