Mbri
Programmer
- Jul 8, 2003
- 6
Is there any way to make access only save a record when someone clicks on the save command button. We're trying to eliminate the autosave/autoupdate feature so that records aren't altered accidentally.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Dim CanSave As Boolean
Private Sub cmdSave_Click()
CanSave = True
If Me.Dirty Then Me.Dirty = False 'Forces an update
CanSave = False
End Sub
Private Sub Form_BeforeUpdate(Cancel As Integer)
Cancel = Not CanSave
End Sub
Private Sub Form_Load()
CanSave = False
End Sub