ADO Connection Problem

B

bliss66

I'm trying to follow instructions in a third-party manual (Access 2002 VBA
Handbook by Novalis and Jones), regarding an ADO connection using this code
in the Immediate Window (I'm actually using Access 2003):

Set rst = New ADODB.Recordset
Set cnn = New ADODB.Connection
cnn.ConnectionString="Provider=Microsoft.Jet.OLEDB.4.0;DataSource=c:\VBAHand
book\Expenses.mdb;Jet OLEDB:Database Password=expenses"
cnn.Open

After the fourth line, I get the following error message:

"Run-time error '-2147467259(80004005)
Could not find installable ISAM."

I located a kb article about editing Jet 4.0 registry entries but, as far as
I could tell, all of the entries contained valid paths.

I also saw some posts here suggesting the installation of MDAC 2.8 (which
apparently wasn't on my machine, only references up to 2.7 were installed)
but that hasn't made a difference.

I have also confirmed the DDL and Security type reference but it hasn't
changed anything.

The above file path in the string is correct. The only other thing I could
think of was that maybe a new security feature of Access 2003 was preventing
me from using this code. The client database is just the sample Northwind
database and the data source is just a database I created with the
wizard--I'm not aware that either are particularly restrictive.

Any other ideas? This computer runs a development edition of SQL Server
2000 SP3 but I wouldn't have thought that would make any difference since it
has nothing to do with the functionality of Access nor the connection
string.

Thanks for your help.

sb
 
B

bliss66

Okay, I got this to work by using the single type reference to MDAC 2.8 (w/o
DDL and Security) and also by putting a space between Data and Source in the
string.

I tell ya....

sb
 
F

Fotios Lindiakos

sb,
Can you post the code that you got to work? I am trying to use ADO for
the first time, and don't know where to start.

--
Frank Lindiakos
Application Developer
WeberSystems Inc.
(e-mail address removed)
(e-mail address removed)
 

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