PC Review


Reply
Thread Tools Rate Thread

ADODB.Connections Error

 
 
=?Utf-8?B?Y29uZnVzZWQtYXMtdXN1YWw=?=
Guest
Posts: n/a
 
      26th Oct 2006
Hello, I am attempting setup a little bit of code that will allow me to
connect to my SQL database and run a pre-existing stored procedure. It seems
simple enough, but I get an error before the sub even runs. It is hanging up
on the:
DIM cnt as New ADODB.connection and
DIM rst as NEW ADOdb.recordset

I am getting a message that states Compile error: Can't find project or
library.

Has anyone esle ever seen this? What should I do.

Any help is highly appreciated. thx
--
-Elaine
 
Reply With Quote
 
 
 
 
paul.robinson@it-tallaght.ie
Guest
Posts: n/a
 
      26th Oct 2006
Hi
Assuming you are in the Excel VB Editor, go to Tools, References and
click on the "Microsoft ActiveX Data Objects 2.5 Library".
You need to tell Excel what the objects are that you are defining (it
will also give you dropdown menus for methods/properties).
regards
Paul

confused-as-usual wrote:
> Hello, I am attempting setup a little bit of code that will allow me to
> connect to my SQL database and run a pre-existing stored procedure. It seems
> simple enough, but I get an error before the sub even runs. It is hanging up
> on the:
> DIM cnt as New ADODB.connection and
> DIM rst as NEW ADOdb.recordset
>
> I am getting a message that states Compile error: Can't find project or
> library.
>
> Has anyone esle ever seen this? What should I do.
>
> Any help is highly appreciated. thx
> --
> -Elaine


 
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
ADOX and ADODB connections not allowing RunSQL method to execute? Syvman Microsoft Access 0 2nd Feb 2006 07:01 PM
ADOX and ADODB connections not allowing RunSQL method to execute? Syvman Microsoft Access 0 2nd Feb 2006 06:08 PM
ADODB Connections =?Utf-8?B?TUNocmlzdA==?= Microsoft Excel Programming 1 7th Dec 2005 08:43 PM
ADODB connections and databas passwords MarkD Microsoft Access VBA Modules 2 5th Dec 2003 12:51 AM
ADODB Connections Brian P. Hammer Microsoft Dot NET Framework Forms 2 13th Nov 2003 09:14 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:05 AM.