Access 2000
I have an form containing the names of all my reports. I used the rectangle tool to create yellow colored boxes for preview and green colored boxes for printing. In the click event of each boxI placed the following code: DoCmd.OpenReport “ReportName”, acViewPreview
Because some of my reports are complex they may take as long as 60 seconds to display or print. No hourglass appears so a user may think nothing is happening. I tried adding the following code before my code to open the report: DoCmd.Hourglass true
The problem with this method is that the hourglass does not appear until after the report has opened. Can anyone tell me how to change the code to get the result I want of immediately displaying the hourglass when the box is clicked and then turning the hourglass off as soon as the report is fully loaded or printed.
My next thought was to create a messagebox to tell the user to be patient while the report is loading but I don’t want them to have to click OK and the report does not begin loading until they do. Is it possible to create a messagebox and use a timer to turn it off automatically after a few seconds. If so, can you steer me in the right direction for the code.