Print dialog box available to users

G

Guest

I created a custom toolbar in Access 2003. I want the users to see the built
in print setup dialog box so that they can choose No of copies, range etc;
but the print button just sends the report straight to the printer. Why is
this? I have even tried coding in Sendkeys (ctrl and P), but that sends the
report straight to the printer as well.

Yet when I use the Print option from the standard File pull down menu, the
dialog box displays. Can anyone advise?
 
G

Guest

Thanks, that seemed to do the trick.
Now, when a report is in print preview mode, the user clicks the print
button on the custom toolbar and runs the following code:

Function fnPrint()
On Error Resume Next
Dim rptCurrentReport As Report
Set rptCurrentReport = Screen.ActiveReport
DoCmd.OpenReport rptCurrentReport.Name, acViewPreview, acViewNormal, , ,
acWindowNormal
RunCommand acCmdPrint
End Function

--
Regards
Shirley


Allen Browne said:
After you OpenReport in preview, try:
RunCommand acCmdPrint
 

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

Similar Threads


Top