Jet 4.0 vs. Jet 3.51 
Author Message
 Jet 4.0 vs. Jet 3.51

The following code works fine with no errors.  However, if I replace
"Microsoft.Jet.OLEDB.3.51" with "Microsoft.Jet.OLEDB.4.0", then the line of
code adoRecordset.Open "select * from current", adoConnection produces the
error message: "Method open of '_Recordset' failed.

What is different about Jet 4.0?  Jet 4.0 is one of the choices when I set
up a connection in the VB 6 Data Environment, so it must be installed.

Dim adoConnection As ADODB.Connection
Dim adoRecordset As ADODB.Recordset
Dim Connectionstring As String

Set adoConnection = New ADODB.Connection
Set adoRecordset = New ADODB.Recordset
Connectionstring = "Provider=Microsoft.Jet.OLEDB.3.51; Persist Security
Info=False; Data source = " & App.Path & "\" & "label_database.mdb"

adoConnection.Open Connectionstring
If adoConnection.State = adStateOpen Then
MsgBox ("the connection is open")
Else
MsgBox ("the connection is not open")
End If

adoRecordset.Open "select * from current", adoConnection



Thu, 14 Mar 2002 03:00:00 GMT  
 Jet 4.0 vs. Jet 3.51
Might be a reference, but take a look at article Q238401 in the
Microsoft Knowledge Base. If you want the whole hyperlink, I posted it
yesterday in another thread on Access 2000 and VB 6 in this newsgroup.


Quote:

> The following code works fine with no errors.  However, if I replace
> "Microsoft.Jet.OLEDB.3.51" with "Microsoft.Jet.OLEDB.4.0", then the
line of
> code adoRecordset.Open "select * from current", adoConnection
produces the
> error message: "Method open of '_Recordset' failed.

> What is different about Jet 4.0?  Jet 4.0 is one of the choices when
I set
> up a connection in the VB 6 Data Environment, so it must be installed.

> Dim adoConnection As ADODB.Connection
> Dim adoRecordset As ADODB.Recordset
> Dim Connectionstring As String

> Set adoConnection = New ADODB.Connection
> Set adoRecordset = New ADODB.Recordset
> Connectionstring = "Provider=Microsoft.Jet.OLEDB.3.51; Persist
Security
> Info=False; Data source = " & App.Path & "\" & "label_database.mdb"

> adoConnection.Open Connectionstring
> If adoConnection.State = adStateOpen Then
> MsgBox ("the connection is open")
> Else
> MsgBox ("the connection is not open")
> End If

> adoRecordset.Open "select * from current", adoConnection

Sent via Deja.com http://www.deja.com/
Before you buy.


Fri, 15 Mar 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Jet DB Performance (Jet 3.51 vs. Jet 4.0)

2. Jet 3.51 vs Jet 4.0 vs MSDE

3. Ms Jet 4.0 VS Jet 3.51 problem loading data

4. MS Jet 3.51 vs Jet 4.0

5. Jet 3.51 vs JET 4.0

6. ADO Jet 4.0 performance problem vs Jet 3.51

7. Is Jet 4.0 slower than Jet 3.51?

8. Jet 3.51 to Jet 4.0

9. Jet 4.0 much slower than Jet 3.51

10. Converting JET 3.51(97) To Jet 4.0(2000) Using DAO In VB 5

11. Jet 3.51 or Jet 4.0?

12. Importing Jet 3.51 table into Jet 4.0 database

 

 
Powered by phpBB® Forum Software