S
Sophia
Hi Everyone;
I posted this question yesterday, but cannot find it. So, here it is again.
I have a form with a subform. If the subform is empty, I want to advise the
user. I have a message box, which asks them if they want to fill in the
subform. If they choose "yes", then the error "you canceled the previous
operation" pops up. How can I remove this error or fix what is wrong? Any
help would be appreciated.
Here is the code for the unload of the form:
Dim intResponse As Variant
If SubfrmAssessment_Details_Admission.Form.RecordsetClone.RecordCount = 0 Then
intResponse = MsgBox("Enter an Admission Assessment", vbYesNo, "Admission
assessment is not done")
If intResponse = vbYes Then
DoCmd.CancelEvent
End If
End If
End Sub
Sophia
I posted this question yesterday, but cannot find it. So, here it is again.
I have a form with a subform. If the subform is empty, I want to advise the
user. I have a message box, which asks them if they want to fill in the
subform. If they choose "yes", then the error "you canceled the previous
operation" pops up. How can I remove this error or fix what is wrong? Any
help would be appreciated.
Here is the code for the unload of the form:
Dim intResponse As Variant
If SubfrmAssessment_Details_Admission.Form.RecordsetClone.RecordCount = 0 Then
intResponse = MsgBox("Enter an Admission Assessment", vbYesNo, "Admission
assessment is not done")
If intResponse = vbYes Then
DoCmd.CancelEvent
End If
End If
End Sub
Sophia