dbTalk Databases Forums  

Dim As Database

comp.database.ms-access comp.database.ms-access


Discuss Dim As Database in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
gn
 
Posts: n/a

Default Dim As Database - 05-19-2004 , 09:27 PM






In access 97 I could Dim As Database. Access 2002 doesn't have that
option : ( What do I do instead?

Reply With Quote
  #2  
Old   
MikeB
 
Posts: n/a

Default Re: Dim As Database - 05-20-2004 , 09:36 AM







"gn" <gn (AT) hotmail (DOT) com> wrote

Quote:
In access 97 I could Dim As Database. Access 2002 doesn't have that
option : ( What do I do instead?
AC2002 uses ADO as the Default data access method. If you want to use DAO (like AC97), in the VBA IDE,
open the VBA Code Window, go to Tools>References and add a reference to "Microsoft DAO 3.x Data Access
Library". If you don't intend to use ADO, Uncheck the reference to "Microsoft ActiveX Data Objects 2.x
Library" to avoid Object Contention in your code. Just to avoid problems, you should also get used to
and adhere to declaring your database objects like this:

Dim Db as DAO.Database

NOT

Dim Db as Database

The Same DAO reference should Prepend all your database objects...




Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.