I’m playing with the Printer object in Access2003. While many of the Printer properties (such as margins) can be set in a report’s Open event at runtime, it appears that the only way to actually change which printer is being used requires that a report be opened first in design mode. This wouldn’t be a problem, except if you wanted to do this in a .mde database! Is there a way to change the printer for a report in such a situation?
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Printer Object (Access2003)
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Printer Object (Access2003)
- This topic has 4 replies, 2 voices, and was last updated 18 years, 5 months ago.
AuthorTopicWSMarkLiquorman
AskWoody LoungerDecember 26, 2006 at 5:39 pm #438338Viewing 1 reply threadAuthorReplies-
WSjohnhutchison
AskWoody LoungerDecember 26, 2006 at 10:39 pm #1044859I have done this sort of thing by formatting the report for the default printer, then changing the default printer in code.
Dim prtDefault As Printer
Set prtDefault = Application.Printer
‘remember the default so you can put it back later
Set Application.Printer = Application.Printers(“PDF995”)
‘ set the default printer to pdf995
‘ now open the report and print it etc
‘ and eventually
Set Application.Printer = prtDefault
‘ put the default printer back -
WSMarkLiquorman
AskWoody LoungerDecember 27, 2006 at 12:25 pm #1044878Thanks, but the problem is I’ve got a situation in which I am sending reports to 2 printers (a label printer and regular printer) from the same form, so I’m not sure what the problems will be in switching the default printer back and forth. The big problem with this technique, as I see it, is resetting the printer back to the original default. Can you do it immediately after issuing the “DoCmd.OpenReport” in code?
-
WSjohnhutchison
AskWoody LoungerDecember 27, 2006 at 9:36 pm #1044951I just tried this and it worked OK.
DoCmd.OpenReport strReportname, acNormal, , strCriteria
Set Application.Printer = prtDefault
DoCmd.OpenReport strReportname, acNormal, , strCriteriaI had set the default printer to a pdf creator, so the first line above made a pdf, then the third line sent the same report to the default printer.
-
-
WSMarkLiquorman
AskWoody LoungerViewing 1 reply thread -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Very Quarrelsome Taskbar!
by
CWBillow
1 hour, 15 minutes ago -
Move OneNote Notebook OFF OneDrive and make it local
by
CWBillow
3 hours, 59 minutes ago -
Microsoft 365 to block file access via legacy auth protocols by default
by
Alex5723
5 hours, 18 minutes ago -
Is your battery draining?
by
Susan Bradley
46 minutes ago -
The 16-billion-record data breach that no one’s ever heard of
by
Alex5723
7 hours, 15 minutes ago -
Weasel Words Rule Too Many Data Breach Notifications
by
Nibbled To Death By Ducks
7 hours, 51 minutes ago -
Windows Command Prompt and Powershell will not open as Administrator
by
Gordski
11 hours, 6 minutes ago -
Intel Management Engine (Intel ME) Security Issue
by
PL1
1 hour, 49 minutes ago -
Old Geek Forced to Update. Buy a Win 11 PC? Yikes! How do I cope?
by
RonE22
4 hours, 20 minutes ago -
National scam day
by
Susan Bradley
7 hours, 16 minutes ago -
macOS Tahoe 26 the end of the road for Intel Macs, OCLP, Hackintosh
by
Alex5723
4 hours, 31 minutes ago -
Cyberattack on some Washington Post journalists’ email accounts
by
Bob99
1 day, 8 hours ago -
Tools to support internet discussions
by
Kathy Stevens
1 day, 15 hours ago -
How get Group Policy to allow specific Driver to download?
by
Tex265
1 day ago -
AI is good sometimes
by
Susan Bradley
1 day, 16 hours ago -
Mozilla quietly tests Perplexity AI as a New Firefox Search Option
by
Alex5723
1 day, 6 hours ago -
Perplexity Pro free for 12 mos for Samsung Galaxy phones
by
Patricia Grace
2 days, 16 hours ago -
June KB5060842 update broke DHCP server service
by
Alex5723
2 days, 14 hours ago -
AMD Ryzen™ Chipset Driver Release Notes 7.06.02.123
by
Alex5723
2 days, 18 hours ago -
Excessive security alerts
by
WSSebastian42
1 day, 9 hours ago -
* CrystalDiskMark may shorten SSD/USB Memory life
by
Alex5723
3 days, 4 hours ago -
Ben’s excellent adventure with Linux
by
Ben Myers
1 hour, 41 minutes ago -
Seconds are back in Windows 10!
by
Susan Bradley
2 days, 15 hours ago -
WebBrowserPassView — Take inventory of your stored passwords
by
Deanna McElveen
1 day, 9 hours ago -
OS news from WWDC 2025
by
Will Fastie
19 hours, 18 minutes ago -
Need help with graphics…
by
WSBatBytes
1 day, 23 hours ago -
AMD : Out of Bounds (OOB) read vulnerability in TPM 2.0 CVE-2025-2884
by
Alex5723
3 days, 19 hours ago -
Totally remove or disable BitLocker
by
CWBillow
2 days, 19 hours ago -
Windows 10 gets 6 years of ESU?
by
n0ads
2 days, 22 hours ago -
Apple, Google stores still offer China-based VPNs, report says
by
Nibbled To Death By Ducks
4 days, 6 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.