Selasa, 26 Juli 2011

[MS_AccessPros] unrecognized database format...is this a reference problem ?

 

This code worked with MDB, but I am now altering it for accdb. Code is as follows"

Dim cnn As New ADODB.Connection
Dim rst As New ADODB.Recordset

cnn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=C:\E_FORM\" & _
"Database1.accdb;"

rst.Open "Legacy3_filled", cnn, _
adOpenKeyset, adLockOptimistic

Does anything appear wrong? or am I using the wrong reference components ?
Terence

__._,_.___
Recent Activity:
.

__,_._,___

Tidak ada komentar:

Posting Komentar