Access 2003 VBA record set routine sometimes bugs out with error message:
"Run-Time-Error '2147217885(80040e23)': Record is Deleted"
Point in routine error occurs is below:
Dim myConnectionAV As ADODB.Connection
Set myConnectionAV = CurrentProject.Connection
Dim myRecordsetAV As New ADODB.Recordset
myRecordsetAV.ActiveConnection = myConnectionAV
myRecordsetAV.Open "TempAvailable", , adOpenDynamic, adLockOptimistic
myRecordsetAV.MoveFirst
While Not myRecordsetAV.EOF
(here) AFvar = myRecordsetAV.Fields("Face").Value
Any idea what is going on here?
"Run-Time-Error '2147217885(80040e23)': Record is Deleted"
Point in routine error occurs is below:
Dim myConnectionAV As ADODB.Connection
Set myConnectionAV = CurrentProject.Connection
Dim myRecordsetAV As New ADODB.Recordset
myRecordsetAV.ActiveConnection = myConnectionAV
myRecordsetAV.Open "TempAvailable", , adOpenDynamic, adLockOptimistic
myRecordsetAV.MoveFirst
While Not myRecordsetAV.EOF
(here) AFvar = myRecordsetAV.Fields("Face").Value
Any idea what is going on here?