> I moved all tables/queries/macros/forms from Access97 to Access2000,
> when I ran the compact repair tool, it gave me a compile error in the
[quoted text clipped - 3 lines]
>
> What should I do?
Add a reference to the DAO 3.6 library. Access 97 has a reference ot DAO by
default whereas Access 200 does not. If you had simply used Access 2000 to
convert the file this would have been done for you.

Signature
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Max - 30 Jun 2005 16:56 GMT
another error
Set rst = dbs.OpenRecordset(strSQL)
> > I moved all tables/queries/macros/forms from Access97 to Access2000,
> > when I ran the compact repair tool, it gave me a compile error in the
[quoted text clipped - 7 lines]
> default whereas Access 200 does not. If you had simply used Access 2000 to
> convert the file this would have been done for you.
Rick Brandt - 30 Jun 2005 18:20 GMT
> another error
>
> Set rst = dbs.OpenRecordset(strSQL)
Both DAO and ADO have a Recordset object so I should have mentioned that in
addition to adding the reference for DAO you need to remove the one for ADO.
Otherwise you have to disambiguate all objects that exist in both libraries.
Instead of...
Dim rst as Recordset
...use...
Dim rst as DAO.Recordset.

Signature
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Max - 30 Jun 2005 19:08 GMT
Thanks Rick
> > another error
> >
[quoted text clipped - 10 lines]
>
> Dim rst as DAO.Recordset.
D Huber - 30 Jun 2005 20:47 GMT
I am having a similar problem. How would I add a reference to DAO 3.6 library?
> > I moved all tables/queries/macros/forms from Access97 to Access2000,
> > when I ran the compact repair tool, it gave me a compile error in the
[quoted text clipped - 7 lines]
> default whereas Access 200 does not. If you had simply used Access 2000 to
> convert the file this would have been done for you.
Douglas J. Steele - 01 Jul 2005 00:18 GMT
With any code module open, select Tools | References from the menu bar,
scroll through the list of available references until you find the one for
Microsoft DAO 3.6 Object Library, and select it. If you're not going to be
using ADO, uncheck the reference to Microsoft ActiveX Data Objects 2.1
Library

Signature
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)
>I am having a similar problem. How would I add a reference to DAO 3.6
>library?
[quoted text clipped - 12 lines]
>> to
>> convert the file this would have been done for you.