
User Define Type Not Defined
On Sun, 4 Jun 2000 14:49:33 -0400, "Jim Kilgo"
Quote:
>I keep getting a compile error when I attempt to run a VBA Sub that I
>created. Here is the code where the error occurs.
>Dim db As Database
[snip]
If you use Access 2000 to create a new database, it assumes you want
to use the ADO object model. The ADO object model doesn't expose a
Database object; the DAO object model does.
Open any module in design view. Open the References dialog (Tools |
References). Check the reference for DAO 3.6, and (perhaps) remove
the check for ADO (Activex Data Objects). (At least lower its
priority.)
--
Mike Sherrill
Information Management Systems