Dear specialists,
I want to give the user the posibility to print the repport or not when they close the repport with this code :
Because they don't have the quick menu to print the repport, I disabled it so they can not go to the design mode...
But my code gives an error.
error 2585 during execution. You cannot perform this action while a form or a report event is being processed.
I can hear my printer starting but he doesn't print.
What am I doing wrong?
Thanks
Greetz
Pascal
I want to give the user the posibility to print the repport or not when they close the repport with this code :
Code:
Private Sub Report_Close()
Dim Response As Integer
Response = MsgBox("Printen?", vbYesNo + vbQuestion, "Report Information")
If Response = vbYes Then
DoCmd.PrintOut acPrintAll, , , , 1
Else
Exit Sub
End If
End Sub
Because they don't have the quick menu to print the repport, I disabled it so they can not go to the design mode...
But my code gives an error.
error 2585 during execution. You cannot perform this action while a form or a report event is being processed.
I can hear my printer starting but he doesn't print.
What am I doing wrong?
Thanks
Greetz
Pascal