Prevent Closing an Access Report

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TroyLad
    New Member
    • Apr 2010
    • 1

    Prevent Closing an Access Report

    I want to confirm with the user that they have printed a report when they click on the close button of a previewed report. If they choose not to close (in answering my msgbox) I would like to not close it. I tried CancelEvent but that didn't work. Any ideas?

    Thanks for your help!
  • ADezii
    Recognized Expert Expert
    • Apr 2006
    • 8834

    #2
    Originally posted by TroyLad
    I want to confirm with the user that they have printed a report when they click on the close button of a previewed report. If they choose not to close (in answering my msgbox) I would like to not close it. I tried CancelEvent but that didn't work. Any ideas?

    Thanks for your help!
    To the best of my knowledge you simply cannot Cancel a Report's Close() Event. The best you can do is probably write some clumsy code that will utilize a Timer() Event and re-open the Report.

    Comment

    Working...