A
Adam Thwaites
I have the following code on a form to make sure the first record I open has
not been assigned to anyone. I'm not sure how to reference the recordset that
is already open of the form, and Me.RecordsetClone.EOF is never returning
True. I just get error 2105, 'You can't go to the specified record' when the
code reaches the last record and tries to do another goto acNext.
The recordsource of the form is tbl_Main.
Do Until chkAssigned = False
If Me.RecordsetClone.EOF Then
DoCmd.GoToRecord , , acFirst
Else
DoCmd.GoToRecord , , acNext
End If
Loop
chkAssigned = True
not been assigned to anyone. I'm not sure how to reference the recordset that
is already open of the form, and Me.RecordsetClone.EOF is never returning
True. I just get error 2105, 'You can't go to the specified record' when the
code reaches the last record and tries to do another goto acNext.
The recordsource of the form is tbl_Main.
Do Until chkAssigned = False
If Me.RecordsetClone.EOF Then
DoCmd.GoToRecord , , acFirst
Else
DoCmd.GoToRecord , , acNext
End If
Loop
chkAssigned = True