marsha4jesus
09-10-2007, 06:48 PM
The following code works fine if the printmode is acpreview, but with print mode of acnormal, it still goes to the printer. Please help! I do not want
it to go to the printer on acnormal. It says it is going to the printer, however it does not go to the printer
Private Sub Report_NoData(Cancel As Integer)
On Error GoTo HandleErrors
MsgBox "No data to Display"
Cancel = True
ExitHere:
Exit Sub
HandleErrors:
Select Case Err.Number
Case 2501
Resume ExitHere
Case Else
MsgBox Err.Description & " (Error: " & Err.Number & ")"
Resume ExitHere
End Select
End Sub
it to go to the printer on acnormal. It says it is going to the printer, however it does not go to the printer
Private Sub Report_NoData(Cancel As Integer)
On Error GoTo HandleErrors
MsgBox "No data to Display"
Cancel = True
ExitHere:
Exit Sub
HandleErrors:
Select Case Err.Number
Case 2501
Resume ExitHere
Case Else
MsgBox Err.Description & " (Error: " & Err.Number & ")"
Resume ExitHere
End Select
End Sub