I have a report on which I added Print Preview command button. The On-Click event of the button contains the following code only:
DoCmd.RunCommand acCmdPrintPreview
When the Print Preview is clicked the preview opens as expected but the entire application seems to freeze and Access does not respond to anything on any part of the screen. I have discovered two ways to clear the situation.
1) Bring up the task manager then immediately close it. After this the ribbon buttons become active again and I can close the preview or use the zoom features, etc.
2) Switch to the Access VBA window and click the Reset button. Even though there is no indication in the code window that the code stopped or hit a failure point, this does clear the problem and the report window unfreezes and everything works normally again.
What am I doing wrong?
DoCmd.RunCommand acCmdPrintPreview
When the Print Preview is clicked the preview opens as expected but the entire application seems to freeze and Access does not respond to anything on any part of the screen. I have discovered two ways to clear the situation.
1) Bring up the task manager then immediately close it. After this the ribbon buttons become active again and I can close the preview or use the zoom features, etc.
2) Switch to the Access VBA window and click the Reset button. Even though there is no indication in the code window that the code stopped or hit a failure point, this does clear the problem and the report window unfreezes and everything works normally again.
What am I doing wrong?