I am using the following code
Private Sub ViewFrmPrintRptBtn_Click()
On Error GoTo Forms
If Not IsNull(ReportPrintList) Then
DoCmd.OpenReport ReportPrintList, acViewPreview
DoCmd.Close acForm, "DialogPrintFotm"
Else
'MsgBox MESSAGETEXT, vbExclamation, "Invalid operation"
DoCmd.OpenForm ReportPrintList
End If
Exit_Here:
Exit Sub
Resume Forms
Forms:
DoCmd.OpenForm ReportPrintList
DoCmd.Close acForm, "DialogPrintFotm"
End Sub
When Select Catagory is left Blank and / Or Select Forms Or Reports is also blank or not selected.
View Form / Print Report is Cliked I am getting the following error
Run-time error: '2498' Debug Error
What should I add in the above mentioned code that this Debug Run-time error: '2498' should not pop-up.
Instead A Message to pop up saying Select Catagory Can Not Be Left Empty And Select Forms Or Reports Must Be Selected To Proceed