User Defined Type Not Defined

M

Mike Thomas

When I try to compile an mdb, I get the above error on this line:

Dim OpenDialog As New APIDialog

I have these 6 libraries checked in the Preferences drop down:

Vis Basic for Applications
Microsoft Access 9.0 Object Library
OLE Automation
Microsoft DAO 3.6 Object Library
Microsoft Vis Basic for Apps Extensibility 5.3
Microsoft Excel 9.0 Object LIbrary

I don't get this error in compiling any other mdb.

ANy ideas?

Many thanks
Mike Thomas
 
D

Dirk Goldgar

Mike Thomas said:
When I try to compile an mdb, I get the above error on this line:

Dim OpenDialog As New APIDialog

I have these 6 libraries checked in the Preferences drop down:

Vis Basic for Applications
Microsoft Access 9.0 Object Library
OLE Automation
Microsoft DAO 3.6 Object Library
Microsoft Vis Basic for Apps Extensibility 5.3
Microsoft Excel 9.0 Object LIbrary

I don't get this error in compiling any other mdb.

ANy ideas?

Many thanks
Mike Thomas

I don't know what the class APIDialog is, but it isn't a defined in any
of the libraries you listed, AFAIK. If it is used in other .mdb files
you have, possibly it's defined in a class module that you'll have to
import from one of them. Otherwise, check the references in those
databases to see if there's a reference to a library that defines this
object.
 

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

Top