Hi Everyone:
I want to ensure that the subform is completed by users before closing the main form. This works, but if someone opens the form in error and then wants to close it, they can't since the subform is not complete.
Can anyone help?
I current have this code on the main form's unload.
Private Sub Form_Unload(Cancel As Integer)
DoCmd.SetWarnings False
If Me! SubfrmAssessment_Details_Admission.Form.RecordsetClone.Reco
rdCount = 0 Then
MsgBox "Please enter an assessment first"
Cancel = True
End If
End Sub
Thanks, Sophia
I want to ensure that the subform is completed by users before closing the main form. This works, but if someone opens the form in error and then wants to close it, they can't since the subform is not complete.
Can anyone help?
I current have this code on the main form's unload.
Private Sub Form_Unload(Cancel As Integer)
DoCmd.SetWarnings False
If Me! SubfrmAssessment_Details_Admission.Form.RecordsetClone.Reco
rdCount = 0 Then
MsgBox "Please enter an assessment first"
Cancel = True
End If
End Sub
Thanks, Sophia