PC Review


Reply
Thread Tools Rate Thread

Dim db as Database

 
 
=?Utf-8?B?Q3liZXJ3b2xm?=
Guest
Posts: n/a
 
      17th Jun 2005
When I try setting up the Dim statement for a database object, I do not have
the database object in my list of available objects.

I think I need additional files installed, but can not find them on disk one
of the Office 2000 disk. Is this info on Disk 2?
 
Reply With Quote
 
 
 
 
Ken Snell [MVP]
Guest
Posts: n/a
 
      17th Jun 2005
You just need to set a reference to the DAO library (it's not set by default
in ACCESS 2000 and 2002). Open Visual Basic Editor, click Tools |
References, and select the Data Access Object library (3.6).

Note that DAO and ADO have some objects with the same names (e.g.,
Recordset), so disambiguate any DAO objects using DAO. in the declaration.
--

Ken Snell
<MS ACCESS MVP>




"Cyberwolf" <(E-Mail Removed)> wrote in message
news:C0E3C5C1-B38A-44A3-A203-(E-Mail Removed)...
> When I try setting up the Dim statement for a database object, I do not
> have
> the database object in my list of available objects.
>
> I think I need additional files installed, but can not find them on disk
> one
> of the Office 2000 disk. Is this info on Disk 2?



 
Reply With Quote
 
=?Utf-8?B?Q3liZXJ3b2xm?=
Guest
Posts: n/a
 
      17th Jun 2005
Thanks Ken That is exactly what I was looking for. I am an Office 97 user
and I never had to do that. Now I know for future use.

"Ken Snell [MVP]" wrote:

> You just need to set a reference to the DAO library (it's not set by default
> in ACCESS 2000 and 2002). Open Visual Basic Editor, click Tools |
> References, and select the Data Access Object library (3.6).
>
> Note that DAO and ADO have some objects with the same names (e.g.,
> Recordset), so disambiguate any DAO objects using DAO. in the declaration.
> --
>
> Ken Snell
> <MS ACCESS MVP>
>
>
>
>
> "Cyberwolf" <(E-Mail Removed)> wrote in message
> news:C0E3C5C1-B38A-44A3-A203-(E-Mail Removed)...
> > When I try setting up the Dim statement for a database object, I do not
> > have
> > the database object in my list of available objects.
> >
> > I think I need additional files installed, but can not find them on disk
> > one
> > of the Office 2000 disk. Is this info on Disk 2?

>
>
>

 
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
Any solution for error message "Could not attach file 'App_Data\Database.mdf' as database 'Database'."? ornit_sagy@yahoo.com Microsoft ADO .NET 0 8th Jan 2007 08:34 PM
Any solution for error message "Could not attach file'App_Data\Database.mdf' as database 'Database'."? ornit_sagy@yahoo.com Microsoft ADO .NET 1 8th Jan 2007 08:12 PM
How to Add an All Values Item to a Database Query by Using the FrontPage 2003 Database Results Wizard =?Utf-8?B?RGFuaWVs?= Microsoft Frontpage 4 2nd Feb 2004 05:36 PM
WINS could not start due to a missing or corrupt database.Restore the database using WINS Manager (or winscl.exe found in the Windows 2000 Resource Kit) and restart WINS. If WINS still does not start, begin with a fresh copy of the database. =?Utf-8?B?V2hvcHJvZmVzc29y?= Microsoft Windows 2000 0 9th Dec 2003 09:41 PM
Help w/ The database database name needs to be repaired or isn't a database file dcollar Microsoft Access 2 18th Jul 2003 10:18 PM


Features
 

Advertising
 

Newsgroups
 


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