G
Guest
Hi,
I built a report and it works fine when in design mode, print preview and so
on.
Now, I want to display a preview of the report by clicking on a botton on a
form.
The code I wrote is:
DoCmd.Close
DoCmd.OpenReport "rptAsthmeProVsAgentSens", _
acViewPreview, , , acWindowNormal
But that code does not do anything but close Access altogether. Fortunately,
I save my work regularly.
What coulb be the problem and how can I correct it?
Thank you.
I built a report and it works fine when in design mode, print preview and so
on.
Now, I want to display a preview of the report by clicking on a botton on a
form.
The code I wrote is:
DoCmd.Close
DoCmd.OpenReport "rptAsthmeProVsAgentSens", _
acViewPreview, , , acWindowNormal
But that code does not do anything but close Access altogether. Fortunately,
I save my work regularly.
What coulb be the problem and how can I correct it?
Thank you.