PC Review


Reply
Thread Tools Rate Thread

97 to 2000 format

 
 
=?Utf-8?B?TWF4?=
Guest
Posts: n/a
 
      30th Jun 2005
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 line

DIM dbs as database

What should I do?
 
Reply With Quote
 
 
 
 
Rick Brandt
Guest
Posts: n/a
 
      30th Jun 2005
Max wrote:
> 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
> line
>
> DIM dbs as database
>
> 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.

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com


 
Reply With Quote
 
=?Utf-8?B?TWF4?=
Guest
Posts: n/a
 
      30th Jun 2005
another error

Set rst = dbs.OpenRecordset(strSQL)

"Rick Brandt" wrote:

> Max wrote:
> > 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
> > line
> >
> > DIM dbs as database
> >
> > 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.
>
> --
> I don't check the Email account attached
> to this message. Send instead to...
> RBrandt at Hunter dot com
>
>
>

 
Reply With Quote
 
Rick Brandt
Guest
Posts: n/a
 
      30th Jun 2005
Max wrote:
> another error
>
> Set rst = dbs.OpenRecordset(strSQL)
>
> "Rick Brandt" wrote:


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.

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com


 
Reply With Quote
 
=?Utf-8?B?TWF4?=
Guest
Posts: n/a
 
      30th Jun 2005
Thanks Rick

"Rick Brandt" wrote:

> Max wrote:
> > another error
> >
> > Set rst = dbs.OpenRecordset(strSQL)
> >
> > "Rick Brandt" wrote:

>
> 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.
>
> --
> I don't check the Email account attached
> to this message. Send instead to...
> RBrandt at Hunter dot com
>
>
>

 
Reply With Quote
 
=?Utf-8?B?RCBIdWJlcg==?=
Guest
Posts: n/a
 
      30th Jun 2005
I am having a similar problem. How would I add a reference to DAO 3.6 library?

"Rick Brandt" wrote:

> Max wrote:
> > 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
> > line
> >
> > DIM dbs as database
> >
> > 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.
>
> --
> I don't check the Email account attached
> to this message. Send instead to...
> RBrandt at Hunter dot com
>
>
>

 
Reply With Quote
 
Douglas J. Steele
Guest
Posts: n/a
 
      1st Jul 2005
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

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)



"D Huber" <(E-Mail Removed)> wrote in message
news:719B12DE-91E3-48B2-BB28-(E-Mail Removed)...
>I am having a similar problem. How would I add a reference to DAO 3.6
>library?
>
> "Rick Brandt" wrote:
>
>> Max wrote:
>> > 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
>> > line
>> >
>> > DIM dbs as database
>> >
>> > 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.
>>
>> --
>> I don't check the Email account attached
>> to this message. Send instead to...
>> RBrandt at Hunter dot com
>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I cannot edit cell format in Excel 2000 (Part of office 2000)! =?Utf-8?B?QnJldHQ=?= Microsoft Excel Misc 1 12th Apr 2006 05:58 PM
Access 2000 file format vs. Access 2000 - 2002 file format Buck Microsoft Access 5 26th Jan 2006 10:14 AM
Excel 2000 date format cannot be set to Australian date format =?Utf-8?B?QnJpYW4gSm9uZXM=?= Microsoft Excel Misc 1 30th Mar 2005 06:03 AM
Convert 2000 format to 2000 format?? Ian King Microsoft Access 3 14th Jul 2004 11:52 PM
Conversion form Microsoft 2000 file format to 2002 file format W. Guy Delaney Microsoft Access 5 3rd Jul 2003 04:23 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:07 PM.