Ravi Kumar
Registered User.
- Local time
- Today, 14:57
- Joined
- Aug 22, 2019
- Messages
- 162
form my save a button I have written the below to show a notification & then save code but it is not working , pls suggest me the correct code:
Private Sub cmdsave_click()
If Me.Dirty = True Then
If MsgBox("Do you want to save the changes for this record?", _
vbYesNo + vbQuestion, "Save Changes?") = vbNo Then
Me.Undo
End If
End If
End Sub
Private Sub cmdsave_click()
If Me.Dirty = True Then
If MsgBox("Do you want to save the changes for this record?", _
vbYesNo + vbQuestion, "Save Changes?") = vbNo Then
Me.Undo
End If
End If
End Sub