Printing Command

J

jeff

The command print (DoCmd.RunCommand acCmdPageSetup) works great. However
when the command is executed you can not see the report until after the
command is executed. I will like to know how to show the report first then
print....

NOTE:
The command is executed from a form.
 
S

Steve Sanford

Have you tried:

DoCmd.OpenReport "YourReportNameGoesHere", acViewPreview


If you use "acViewNormal" (the default) instead of "acViewPreview", the
report prints without the preview.

HTH
 
J

jeff

Yes, I tried that command code, then I enter the DoCmd.RunCommand acCmdPrint

There is a small pause then the print menu comes on but there is no report
view.

Jeff-

--
 
S

Steve Sanford

I have (so far) 24 reports in my MDB. I have a list box that, when double
clicked, opens the selected report in preview mode. The command I use is (for
one report):

DoCmd.OpenReport "rptCurrentRates", acViewPreview


The report opens in preview mode, thenI print it using the printer button in
the menu bar. No other code required. Then I click on the Close button in the
menu bar.


What other code is in your Sub???

HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top