problems connecting access2000 db 
Author Message
 problems connecting access2000 db

hi there ,just started ado & i cant anderstand why when
i use an .mdb file of access 97  i have no problem connecting
the db , but when i create a new db file in access 2000
i get an error "unrecohnized database format ..'name of file'"

this is the code:
"Public dbDATA As ADODB.Connection

Public Sub OpenDB()
    Set dbDATA = New ADODB.Connection

    dbDATA.Open "provider=microsoft.jet.OLEDB.3.51;Data
Source=d:\eranvb\shai\Shaidb.mdb"

End Sub"

i hope someone can get me out of one  thenks eranb



Fri, 26 Sep 2003 08:37:26 GMT  
 problems connecting access2000 db


Quote:
> hi there ,just started ado & i cant anderstand why when
> i use an .mdb file of access 97  i have no problem connecting
> the db , but when i create a new db file in access 2000
> i get an error "unrecohnized database format ..'name of file'"

> this is the code:
> "Public dbDATA As ADODB.Connection

> Public Sub OpenDB()
>     Set dbDATA = New ADODB.Connection

>     dbDATA.Open "provider=microsoft.jet.OLEDB.3.51;Data
> Source=d:\eranvb\shai\Shaidb.mdb"

<snip>

With Access 2000 you have to use Jet 4.0. 3.51 is the one for Access 97. Try

dbDATA.Open "provider=microsoft.jet.OLEDB.4.0;Data
Source=d:\eranvb\shai\Shaidb.mdb"

Regards,

Halstein Tonheim



Fri, 26 Sep 2003 01:10:40 GMT  
 problems connecting access2000 db
change 3.51 to 4.0

Garry
www.silvermaine.co.uk



Fri, 26 Sep 2003 05:01:18 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Problem connecting to Access2000 database...pls, pls help.

2. Convert Access97 DB to Access2000 DB

3. Problem: can't connect to a DB within a Subroutine

4. Help, plz, problems connecting to db second time

5. Problem: can't connect to a DB within a Subroutine

6. Password Problems connecting VB6 to an Access 7.0 DB

7. Problem Connecting to Oracle DB

8. Copying DB over existing DB connected to DataEnvironment

9. Can't connect to Access2000 database

10. connecting to access2000 via ado?

11. Crystal Report Connecting to Access2000

12. not able to connect to access2000

 

 
Powered by phpBB® Forum Software