CommandBars Problem ("Print Bar")

D

Don

I am modifying an application developed by someone else. In it, the person
uses the following:

CommandBars("Print Bar").Visible = True

to set up the print button on a report (no other buttons visible).
Unfortunately, this command bar uses the default printer, not allowing the
user a choice printers. I looked at the available command bars in the
CommandBars collection to see if there was an "advanced" print bar, but did
not see any.

Is there an easy way to modify this code so that the user is prompted for
the desired printer instead of using the default?

Thanks!

Don
 
S

Someone

Use the following code on a button:

DoCmd.SelectObject acReport, Screen.ActiveReport.Name
DoCmd.RunCommand acCmdPrint

M
 

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