Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to change printer from Access db

Posted on 2002-05-20
6
Medium Priority
?
1,377 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 7

Accepted Solution

by:
lmerrell earned 200 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
Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

 
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

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

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

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
Instead of error trapping or hard-coding for non-updateable fields when using QODBC, let VBA automatically disable them when forms open. This way, users can view but not change the data. Part 1 explained how to use schema tables to do this. Part 2 h…
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…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

610 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