Printer refernce module

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am running Office 2000 and need to know what reference module the printers
collection is in. I tried using Application.Printer = "My printer name" and
when I compile it, it returns the error "Compile error, Method or data member
not found"

TIA
 
Try setting the Printer object to the member of the Printers collection:
Set Printer = Printers("My printer name")
 
I am still getting a compile error on the Printers part of "Set Printer =
Printers("PRT15 on PASVR") of Sub or Function not defined.

TIA
 
Loop through the Printers collection, and confirm that you have this name
exactly as Access understands it.
 
Hi Albert,

I got your code and tried it but I got a sub or function not defiend on the
SeDefaultPtr line. Here is my code:

Private Sub butPrintLetter_Click()
On Error GoTo butPrintLetter_Err

Dim intResponse As Integer
Dim objWord As Word.Application
Dim strCurrentPtr As String
Dim strDefaultPtr As String


strCurrentPtr = GetDefaultPtr

strDefaultPtr = "\\PASVR\PRT15"
SetDefaultPtr strDefaultPtr

Select Case QueryType
 
Back
Top