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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What reference is needed to declare a printer object?

Status
Not open for further replies.

newtoASP

Programmer
Jun 1, 2001
40
US
Inherited an Access 2000 database, and this line in a module throws an error:

dim ptr as Printer

Error is 'User-defined type is not defined'.

Do I need to set a reference to something to get access to the printer object?
 
As far as I know you don't need any special reference for this - it is part of Access.

However, if you have any broken references, Access will often throw this error for any object (not just the ones belonging to the missing library).

Go into your References and check for anything marked MISSING.


 
I don't have any missing references. I was able to compile the module at one point successfully, now I'm getting that error again. Not sure why. Could it be that I have several different versions of Office or Access installed?
 
Printer management came in after Access 2000 (2002, I think). It is possible that you have several versions of Access, some that have the capability and some that don't.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top