Avatar of jhunter9999
jhunter9999
 asked on

Switching network queued printers in access 2000.

I have created a program that sends a print job to a remote printer on the network.  When the job is printed and the end user exits the program, unless they manually reselect the default printer, all jobs go to that remote printer.  I need to have some way to tell access 2000 that the default printer needs to be reset before one leaves the program.

Is there a variable that can be trapped to indicate what the current printer is before I switch printers with my program so I can use the variable to tell access to go back to this original printer that it knew about before the program caused the switch?

Microsoft Access

Avatar of undefined
Last Comment
Imoutwest

8/22/2022 - Mon
Imoutwest

I believe the variable that you're refering to is the PrtDevNames properties.

See this site for a better explanation.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbaac11/html/acproPrinter_HV03081974.asp
Imoutwest

After some reading, I think this site provides what you're looking for... (although somewhat more complicated)

http://support.microsoft.com/default.aspx?scid=kb;EN-US;266767#top

Hope you find this helpful, Imoutwest
ASKER CERTIFIED SOLUTION
jjafferr

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23