L
lmv
How do I have the following automatically default to "yes save changes" and
close after a few seconds?
Private Sub Form_BeforeUpdate(Cancel As Integer)
Dim strMsg As String
strMsg = "Data has changed."
strMsg = strMsg & "Do you want to SAVE changes?"
If MsgBox(strMsg, vbQuestion + vbYesNo, "Save Record?") = vbYes Then
Else
Me.Undo
Cancel = True
End If
End Sub
close after a few seconds?
Private Sub Form_BeforeUpdate(Cancel As Integer)
Dim strMsg As String
strMsg = "Data has changed."
strMsg = strMsg & "Do you want to SAVE changes?"
If MsgBox(strMsg, vbQuestion + vbYesNo, "Save Record?") = vbYes Then
Else
Me.Undo
Cancel = True
End If
End Sub