I have a form with a checkbox and a comand button. When I have the following:
Code:
Private Sub cmdContinue_Click()
If Me.chkCertify = False Then MsgBox "You must check the cetification box indicating you have read the warning and certifty the accuracy of the entered information."
DoCmd.OpenForm "frmTrainingMultInput"
DoCmd.Close acForm, "frmSchoolNomMultiple"
DoCmd.Close acForm, "frmTrainingMultInputCertify"
End Sub
This is the first VBA code I have ever written entirely on my own. If the user clicks the button without the check box selected, the message displays, but when they click 'Ok', it continues the code and opens/closes the forms without the check box ever being selected.
I am not sure what to put where to get the code to stop and go back to frmTrainingMultInputCertify.
Thank you in advance for your time and help. Have a great day!