printOut action--WHO's Default Printer??

A

AZ

Hello,
I have a form that has a command button with the following event
procedure:

Private Sub btnPrint_Click()
DoCmd.printOut (acSelection)
End Sub

This works fine--it lets the user print out the current record.
However, all users' records go to the same printer on our network,
TRU_10. I read in a few places that the printOut action will send the
output to the "default printer". But according to Windows Setting,
TRU_10 is not my default printer--it's not even on my list of
printers! Other users have the same problem--even though TRU_10 is
not their default printer, this form always prints there.

Even this would not be such a problem, but now my tech support people
want to take this printer away and I don't know how to get this form
to print elsewhere. Any idea how I can solve this?

Also, I thought that I might be able to see what Access thinks is my
default printer by looking in the database properties, but I get the
message "Microsoft Access is unable to load the database properties".
Not sure if this is related to my printing issue or not.

Anyway, I would be happy if this form printed to each user's default
printer, which I guess is the expected behaviour for DoCmd.printOut.
Any ideas?

Thanks,
Adam

Access 2000
Windows XP Professional
 
D

Douglas J. Steele

The report may have been associated with that specific printer. If so, it's
used rather than the default one.

To check, open the report in Design view and select Page Setup from the File
menu. Look at the bottom of second tab (the Page tab).
 
A

AZ

That did the trick. Thanks!


The report may have been associated with that specific printer. If so, it's
used rather than the default one.

To check, open the report in Design view and select Page Setup from the File
menu. Look at the bottom of second tab (the Page tab).

--
Doug Steele, Microsoft Access MVPhttp://I.Am/DougSteele
(no e-mails, please!)











- Show quoted text -
 

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