realstandman
IS-IT--Management
Ok I am using a button on a form to exit the form. I have validation in place and would like to ask the user if they want to save the record before exiting. Here is what I have so far. The Validation works but it skips past the message box code. I am new to this so you may be able to get the direction I am goin in on this. Thanks,
Don't think and the solution will come.
Code:
Private Sub cmdExit_Click()
If validateClaimsProcessedRecord = False Then
Dim exitvalue As String
exitvalue = MsgBox("Would you like to save this Record?", vbYesNo)
If exitvalue = "vbyes" Then
DoCmd.Save
Else
Exit Sub
End If
Exit Sub
End If
DoCmd.RunMacro ("mcrExit.CloseClaimsProcessedExaminer")
End Sub
Don't think and the solution will come.