Good morning!
I have a form which an user fills in, and before clicking on a button to go to the next form, there must be a check that all controls have been filled in completely.
For example, if I have frm1 with fraOne, cboOne & txtOne, I wrote the following code for the OnClick event for cmdNext:
I then get a runtime error "Resume without error". I suspect that I am using the Resume statement incorrectly in this case. Please can someone suggest a solution to solving this?
Thanks,
Jean
I have a form which an user fills in, and before clicking on a button to go to the next form, there must be a check that all controls have been filled in completely.
For example, if I have frm1 with fraOne, cboOne & txtOne, I wrote the following code for the OnClick event for cmdNext:
Code:
Private Sub cmdNext_Click()
Completeness_Check:
If IsNull(cboOne) Or IsNull(fraOne) Or IsNull(txtOne) Then
MsgBox ("An answer is missing")
Resume Completeness_Check
End If
DoCmd.OpenForm "frm2", acNormal
End Sub
I then get a runtime error "Resume without error". I suspect that I am using the Resume statement incorrectly in this case. Please can someone suggest a solution to solving this?
Thanks,
Jean