Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printer selection

Status
Not open for further replies.

mhowarth

Programmer
Apr 14, 2003
6
0
0
GB
Any ideas on how to change printers from a vb program.

I want my access program to send reports by fax and therefore need to select the correct option for the printer.
 
Dim prnX as Printer

For Each prnX in Printers
If prnX.DeviceName = "WHATEVER" Then
Set Printer = prnX
Exit For
End If
Next prnX

Andy
"Logic is invincible because in order to combat logic it is necessary to use logic." -- Pierre Boutroux
"A computer program does what you tell it to do, not what you want it to do." -- Greer's Third Law
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top