A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

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



 
 
Thread Tools Display Modes
  #1  
Old July 10th, 2009, 10:57 PM posted to microsoft.public.access
robnsd
external usenet poster
 
Posts: 23
Default I want print button to print to default printer depending on user

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?
  #2  
Old July 11th, 2009, 01:16 AM posted to microsoft.public.access
Arvin Meyer MVP
external usenet poster
 
Posts: 640
Default I want print button to print to default printer depending on user

"robnsd" wrote in message
...
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
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:02 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.