Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB Run-time error: 3251 - How can I resolve this problem

Status
Not open for further replies.

121854

MIS
Joined
Aug 2, 2003
Messages
60
Location
US
Does any help with the error below:
Run-time error:3251:Current provider does not support the necessary interface for index functionality.

I would like to find out where can I find the error code and the solution for the problem (See code below)
======================================================
CODE:
' Database connectivity [Active x Data Object -ADO]
' Open a recordset object in the current database
' This Connection WORKS !
Dim cnn As Connection
Dim rsttblTransactions As New ADODB.Recordset
Dim varPosition As Variant
Dim strMessage As String

Set cnn = CurrentProject.Connection
rsttblTransactions.Open "tblTransactions", cnn, adOpenKeyset, adLockOptimistic, adCmTableDirect

rsttblTransactions.Index = "keyAutoNumber"
rsttblTransactions.MoveFirst

End Sub
=======================================================
Any suggestions, direction or guidance is appreciated.

Luis
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top