Error #3251/ Speeding up a program
I can't find the hold in my logic on this problem. I keep getting run-time error '3251' with the message "Operation is not supported for this type of object." On the line that tries to use the ".Index".
here is the code I am having problems with:
Dim strSeekee As String
Do Until frmMain.datAcct.Recordset.EOF
For i = 2 To 100
strSeekee = frmMain.datAcct.Recordset.Fields(i)
frmMain.datSDN.Recordset.Index = "ListInfo"
frmMain.datSDN.Recordset.Seek "=", strSeekee
If frmMain.datSDN.Recordset.NoMatch Then
frmMain.datSDN.Recordset.MoveFirst
Else
Call PrintRoutine2
End If
Next i
frmMain.datAcct.Recordset.MoveNext
Loop
Anyone have any ideas?