JunglesMcBeef
Programmer
- Sep 18, 2003
- 266
G'day,
I have a project in Access 2000, and when i try and set the index property of the ADODB.recordset i get the following error msg '3251':
"Current provider does not support the necessary interface for Index functionality."
I have set up the index already within the table, so there should be no reason for it to return an error. I have changed the index in other similar projects and never seen this error msg before. Here is a little snippet of my code, breaking where the index statement is:
Set cnn = CurrentProject.Connection
strSQL = "SELECT * FROM WgtP2"
With rs
Set .ActiveConnection = cnn
.CursorType = adOpenDynamic
.LockType = adLockOptimistic
.Open strSQL
If Not .EOF And Not .BOF Then
.Index = "Customer ID"
Can anyone please help me with this?
I have a project in Access 2000, and when i try and set the index property of the ADODB.recordset i get the following error msg '3251':
"Current provider does not support the necessary interface for Index functionality."
I have set up the index already within the table, so there should be no reason for it to return an error. I have changed the index in other similar projects and never seen this error msg before. Here is a little snippet of my code, breaking where the index statement is:
Set cnn = CurrentProject.Connection
strSQL = "SELECT * FROM WgtP2"
With rs
Set .ActiveConnection = cnn
.CursorType = adOpenDynamic
.LockType = adLockOptimistic
.Open strSQL
If Not .EOF And Not .BOF Then
.Index = "Customer ID"
Can anyone please help me with this?