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.
 
Back
Top