Name 'ADODB' is not declared Error

V

valeria007

I have a VS 2005 project that has some pages that still use ADO and
need to stay that way for the time being.
I've added the reference to ADODB and it shows on the references list
as ADODB GAC 7.0.3300.0. The problem is that none of the code
references to ADODB work and they all error out. Even when I type
Impots ADODB, ADODB doesn't show on the list of possible choices as it
should.
Does anyone have any ideas?
Thanks.
 
J

james

I have a VS 2005 project that has some pages that still use ADO and
need to stay that way for the time being.
I've added the reference to ADODB and it shows on the references list
as ADODB GAC 7.0.3300.0. The problem is that none of the code
references to ADODB work and they all error out. Even when I type
Impots ADODB, ADODB doesn't show on the list of possible choices as it
should.
Does anyone have any ideas?
Thanks.

Right Click in Solution Explorer and select ADD Reference and under the COM
tab, select:
Microsoft ADO Ext. 2.8 for DDL & Security.
Then when you type in : Imports ADODB will show up.
james
 
J

james

Works in 2003 but, in 2005 it comes back with only ADOX. Sorry I didn't
realize that it was different in 2005.
I tried a couple of other references and still the same thing. I guess this
means that ADODB is not supported in
2005. Hopefully, you can get an official answer to this. I have a couple
apps myself that use ADODB written in
2003 (VB) and would like to keep them as is if I ever have to move them to
2005.
james
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top