I have a subform that displays a list of records based on a filter. I have a checkbox control that when ticked, I want to requery the form to orderby this control. This all works fine, however I want some way of maintaining the focus at the position where this occured(the next record after the one that just had its box checked). I had a look at doing the following, but this goes to the next record for all and not based on the records in the applied filer. Any ideas appreciated!!
rs.FindFirst ("[Event_No] = " & Me.Event_No)
rs.MoveNext
rs.Edit
rs![ClosedTrack] = True 'set a record flag to true to search for after query
rs.Update
Me.Requery
rs.FindFirst ("[ClosedTrack]=True")
rs.Edit
rs![ClosedTrack] = False
rs.Update
rs.FindFirst ("[Event_No] = " & Me.Event_No)
rs.MoveNext
rs.Edit
rs![ClosedTrack] = True 'set a record flag to true to search for after query
rs.Update
Me.Requery
rs.FindFirst ("[ClosedTrack]=True")
rs.Edit
rs![ClosedTrack] = False
rs.Update