Disable auto record save

A

Allie

Is there a way to only have Access save a record if a save
button in pressed, instead of the auto save feature it
currently has?

Thanks
 
A

Allen Browne

In the General Declarations section of your form (top of module, with Option
statements):
Dim bAllowSave As Boolean

In the Click event of your command button to save:
If Me.Dirty Then
bAllowSave = True
Me.Dirty = False
bAllowSave = False
End If

In Form_BeforeUpdate:
If bAllowSave Then
bAllowSave = False
Else
Cancel = True
MsgBox "You can save only by clicking the button.
End If
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top