Print from custom toolbar

G

Guest

Hi all,
I've created a custom toolbar that opens with my reports (Access 97). The
only print button available sends the report to the printer without prompting
for any user input eg: Number of copies, which printer etc...
Can anyone suggest a way to have this toolbar show a button that opens the
Print... dialog box before sending the report to the printer?
Thanks in advance,
Dave
 
M

Marshall Barton

Dave said:
I've created a custom toolbar that opens with my reports (Access 97). The
only print button available sends the report to the printer without prompting
for any user input eg: Number of copies, which printer etc...
Can anyone suggest a way to have this toolbar show a button that opens the
Print... dialog box before sending the report to the printer?

Create a public function in a standard module that uses
this:

DoCmd.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

Top