Hi
I know this problem has been posted by others in this forum, but I can't seem to get the solutions working. I have a button on a form that triggers a gotorecord acnext code. When it gets to the end of the recordset, I would like the user to be brought back to the first record.
I have tried this (among many other things):
Private Sub postpone_Click()
Dim rs As Object
Set rs = Me.RecordsetClone
If rs.EOF = False Then
DoCmd.GoToRecord acDataForm, "frm_aftermdm", acNext
Else
DoCmd.GoToRecord acDataForm, "frm_aftermdm", acFirst
End If
rs.close
Set rs = Nothing
End Sub
It just continually runs the acNext rather than the acFirst line. I figure it must be because the rs.EOF never becomes true. What am I missing here? any help greatly appreciated.
thanks
Bruce
I know this problem has been posted by others in this forum, but I can't seem to get the solutions working. I have a button on a form that triggers a gotorecord acnext code. When it gets to the end of the recordset, I would like the user to be brought back to the first record.
I have tried this (among many other things):
Private Sub postpone_Click()
Dim rs As Object
Set rs = Me.RecordsetClone
If rs.EOF = False Then
DoCmd.GoToRecord acDataForm, "frm_aftermdm", acNext
Else
DoCmd.GoToRecord acDataForm, "frm_aftermdm", acFirst
End If
rs.close
Set rs = Nothing
End Sub
It just continually runs the acNext rather than the acFirst line. I figure it must be because the rs.EOF never becomes true. What am I missing here? any help greatly appreciated.
thanks
Bruce