RE: can not connect to the mdb database



Whats the error its thowing.

also pls verify the mdb path, and also reinstall the MDAC.


"Curie" wrote:

> Can you show me what is wrong with this code? I can not open the database's
> table using the following ADO code in the Visual Basic 6.0 enviroment
>
> Dim myDB As ADODB.Connection
> Dim rsL As ADODB.Recordset
>
> Set myDB = New ADODB.Connection
>
> strConnText = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
> "DataSource = C:\Access\db1.mdb;"
>
> myDB.ConnectionString = strConnText
> myDB.Open
> Thanks
.



Relevant Pages

  • Re: Access 2007 ADP: incompatible ADO code
    ... I had a strange error like this working with an Access 97 Database and ... some ADO code that I was taking the other way. ... I re-installed the latest MDAC and the issue seemed to go ...
    (comp.databases.ms-access)
  • can not connect to the mdb database
    ... table using the following ADO code in the Visual Basic 6.0 enviroment ... Dim myDB As ADODB.Connection ... myDB.ConnectionString = strConnText ... Prev by Date: ...
    (microsoft.public.data.ado)