I want print button to print to default printer depending on user

R

robnsd

I have a print button (Command12) on a form (frmStaffNames) that
activates the following event

Private Sub Command12_Click()
DoCmd.OpenReport "SummaryTest", acPrintAll
DoCmd.Close acForm, "frmStaffNames"
End Sub

For some reason when any user clicks the button the report
(SummaryTest) prints at the same printer regardless of user. I want
the report to print to the users default printer, which is different
for each user.

Do I need to add more code?
 
A

Arvin Meyer MVP

robnsd said:
I have a print button (Command12) on a form (frmStaffNames) that
activates the following event

Private Sub Command12_Click()
DoCmd.OpenReport "SummaryTest", acPrintAll
DoCmd.Close acForm, "frmStaffNames"
End Sub

For some reason when any user clicks the button the report
(SummaryTest) prints at the same printer regardless of user. I want
the report to print to the users default printer, which is different
for each user.

Do I need to add more code?

You need to split your database and put a copy of the front-end on each
user's workstation. Running as you are not only makes what you want
difficult, but you will eventually corrupt your data. Before you split it,
change it in each report's design view so it prints on the default printer.
Then after splitting, it will print on each user's default machine.

Splitting the database:
http://www.granite.ab.ca/access/splitapp/overview.htm
 

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