change printer default in access xp

  • Thread starter Thread starter Guest
  • Start date Start date
This example changes to the first printer on your system:

Printer = Printers(0)
Debug.Print "Default printer is now " & Printer.DeviceName
 
thanks
and if i want to select by printer name

----- Allen Browne wrote: ----

This example changes to the first printer on your system

Printer = Printers(0
Debug.Print "Default printer is now " & Printer.DeviceNam
 
Printer = Printers("DeviceNameForYourPrinterHere")

The actual string for the device name will need to match the DeviceName
property of the desired printer.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top