Solved

How to change printer from Access db

Posted on 2002-05-20
6
1,368 Views
Last Modified: 2007-11-27
I want to change default printer programatically from Access database.  I know how to do it from VB, but it looks like Access VBA does not have Printers collection. I was trying to change rpt.PrtDevName = MyPrinterName, but did not manage to make it work.
Any help will be appreciated.
0
Comment
Question by:iboutchkine
  • 4
  • 2
6 Comments
 
LVL 7

Accepted Solution

by:
lmerrell earned 50 total points
ID: 7022534
Here's a link with some different methods.

http://www.mvps.org/access/reports/rpt0009.htm


lmerrell
0
 
LVL 7

Expert Comment

by:lmerrell
ID: 7022538
You were close but you also need to set the PrtDevMode it appears.
0
 
LVL 7

Expert Comment

by:lmerrell
ID: 7022540
I use a product called Print Batch Manager to do this as well.

http://ourworld.compuserve.com/homepages/attac-cg/ACGPBM.htm
0
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 
LVL 28

Author Comment

by:iboutchkine
ID: 7023816
thahk you imerell. I'll try it and let you know
0
 
LVL 28

Author Comment

by:iboutchkine
ID: 7025362
It worked out perfect
0
 
LVL 7

Expert Comment

by:lmerrell
ID: 7025370
Glad I could point you in the right direction.  Have a great day!

lmerrell
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question