G
Guest
I have a form designed so that the user clicks a button and it prints a
report without displaying it (acNormal). However if there is no records the
report prints a page with out any stored information on it. How can I make it
so that it will not do this?
I want to send the user a message letting them that there is not any pages
to print so I tried sending them this message box and then the command
docmd.close under the on no data property, but it gives me the error message:
2585 "This action can't be carried out while processing a form or report
event" I can do just the close command but not both. If I switch the order
around then it just closes and doesn't display the message.
report without displaying it (acNormal). However if there is no records the
report prints a page with out any stored information on it. How can I make it
so that it will not do this?
I want to send the user a message letting them that there is not any pages
to print so I tried sending them this message box and then the command
docmd.close under the on no data property, but it gives me the error message:
2585 "This action can't be carried out while processing a form or report
event" I can do just the close command but not both. If I switch the order
around then it just closes and doesn't display the message.