Here is my problem
I use VB6.0 and Access 2000
My Code is
Set cn = new ADODB.Connection
Set rs = new ADODB.Recordset
With cn
.ConnectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & "Test.mdb"
.Open
End With
rs.Open "Select * from Test",cn, adOpenDynamic, adLockOptimistic
rs.Index = "Test"
When run above code, error " Member or data member not found" occur at "Index" property
Can you tell me why and how to correct it???
I use VB6.0 and Access 2000
My Code is
Set cn = new ADODB.Connection
Set rs = new ADODB.Recordset
With cn
.ConnectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & "Test.mdb"
.Open
End With
rs.Open "Select * from Test",cn, adOpenDynamic, adLockOptimistic
rs.Index = "Test"
When run above code, error " Member or data member not found" occur at "Index" property
Can you tell me why and how to correct it???