PC Review


Reply
Thread Tools Rate Thread

Dim db as database and other built in functions

 
 
Chad
Guest
Posts: n/a
 
      20th Sep 2003
I just recently upgraded from ACCESS 97 to ACCESS 2002
and am haveing trouble with some of the built in
functions. When I try to set a variable to the DATABASE
object it errors. Any help??
 
Reply With Quote
 
 
 
 
Van T. Dinh
Guest
Posts: n/a
 
      20th Sep 2003
Access97 has the Microsoft DAO Object Library in the References Collection
by default. Access2002 has ADO Object Library by default, NOT DAO which you
need as the Database Object belongs to DAO.

Add the Microsoft DAO Object Library to the References Collection of your
database and if you don't use ADO, remove the ADO Object Library from the
References Collection.

Also, not that both DAO & ADO have objects of the same name but they are not
compatible. When you declare these (e.g Recordset), you should (and in some
cases, must) disambiguate them like:

Dim rst As DAO.Recordset

--
HTH
Van T. Dinh
MVP (Access)



"Chad" <(E-Mail Removed)> wrote in message
news:0dab01c37f58$1721b340$(E-Mail Removed)...
> I just recently upgraded from ACCESS 97 to ACCESS 2002
> and am haveing trouble with some of the built in
> functions. When I try to set a variable to the DATABASE
> object it errors. Any help??



 
Reply With Quote
 
Chad
Guest
Posts: n/a
 
      20th Sep 2003
Thanks so very much. I changed it and it works great now.

>-----Original Message-----
>Access97 has the Microsoft DAO Object Library in the

References Collection
>by default. Access2002 has ADO Object Library by

default, NOT DAO which you
>need as the Database Object belongs to DAO.
>
>Add the Microsoft DAO Object Library to the References

Collection of your
>database and if you don't use ADO, remove the ADO Object

Library from the
>References Collection.
>
>Also, not that both DAO & ADO have objects of the same

name but they are not
>compatible. When you declare these (e.g Recordset), you

should (and in some
>cases, must) disambiguate them like:
>
> Dim rst As DAO.Recordset
>
>--
>HTH
>Van T. Dinh
>MVP (Access)
>
>
>
>"Chad" <(E-Mail Removed)> wrote in message
>news:0dab01c37f58$1721b340$(E-Mail Removed)...
>> I just recently upgraded from ACCESS 97 to ACCESS 2002
>> and am haveing trouble with some of the built in
>> functions. When I try to set a variable to the

DATABASE
>> object it errors. Any help??

>
>
>.
>

 
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
built-in functions djbiehl via AccessMonster.com Microsoft Access Queries 1 26th Jul 2006 10:20 PM
Converting Oracle SQL functions to Access built-in functions GVR_Mike Microsoft Access 3 30th Jun 2006 12:33 AM
Built-In Functions =?Utf-8?B?Umljaw==?= Microsoft Access Queries 6 14th Jun 2006 05:52 PM
Should be possible using built-in functions... cmalmqui@gmail.com Microsoft Excel Worksheet Functions 2 24th Mar 2006 09:33 AM
Can I do this with built in functions? Conan Kelly Microsoft Excel Worksheet Functions 3 6th Dec 2005 08:52 PM


Features
 

Advertising
 

Newsgroups
 


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