D
Dave Elliott
I want it to stop the code if there is no check number .
On Error GoTo Err_Command89_Click
Dim stDocName As String
If IsNull(Me.ChkNo) Then
MsgBox "Check Number Needed Please"
Cancel = True
stDocName = "Checks"
Forms!blankchecks.Visible = False
DoCmd.OpenReport stDocName, acNormal
Exit_Command89_Click:
Exit Sub
Err_Command89_Click:
MsgBox Err.Description
Resume Exit_Command89_Click
End If
On Error GoTo Err_Command89_Click
Dim stDocName As String
If IsNull(Me.ChkNo) Then
MsgBox "Check Number Needed Please"
Cancel = True
stDocName = "Checks"
Forms!blankchecks.Visible = False
DoCmd.OpenReport stDocName, acNormal
Exit_Command89_Click:
Exit Sub
Err_Command89_Click:
MsgBox Err.Description
Resume Exit_Command89_Click
End If