G
Guest
I am extremely new to VBA and am having a problem I hoped someone could help
me with. I am trying to refer to the current record on a form based on a
query. I am needing the current record to move to the next record after
updating a control and if it is already the last record on the form to go to
the first record. I have tried the following but keep getting an error.
Private Sub StartTime_AfterUpdate()
'Move the focus to the next record
rs.MoveNext
If rs.EOF Then
rs.MoveFirst
End If
End Sub
Please help.
me with. I am trying to refer to the current record on a form based on a
query. I am needing the current record to move to the next record after
updating a control and if it is already the last record on the form to go to
the first record. I have tried the following but keep getting an error.
Private Sub StartTime_AfterUpdate()
'Move the focus to the next record
rs.MoveNext
If rs.EOF Then
rs.MoveFirst
End If
End Sub
Please help.