G
Guest
Access 2003...Windows XP
Wantng to establish a Filter by Form, I have built a query string called:
'strWhere'
This was applied using:
Me.Filter = strWhere
Me.FilterOn = True
It functions correctly.
My problem is that now, on the same form, when using the "Get Next Record"
command button as built and coded under the command button wizard, it is not
taking me to the next 'filtered record' but the next record in the complete
and unfiltered recordset, ignoring the filter. The code created for the
button by the wizard contains the line:
DoCmd.GoToRecord , ,acNext
Logically I don't follow why this would be, but need some code or a trick to
get to the next record in the filtered recordset. There does not appear to
be a criteria option available under the DoCmd.GoToRecord syntax.
Many Thanks for the great past, current and future help provided here.
Wantng to establish a Filter by Form, I have built a query string called:
'strWhere'
This was applied using:
Me.Filter = strWhere
Me.FilterOn = True
It functions correctly.
My problem is that now, on the same form, when using the "Get Next Record"
command button as built and coded under the command button wizard, it is not
taking me to the next 'filtered record' but the next record in the complete
and unfiltered recordset, ignoring the filter. The code created for the
button by the wizard contains the line:
DoCmd.GoToRecord , ,acNext
Logically I don't follow why this would be, but need some code or a trick to
get to the next record in the filtered recordset. There does not appear to
be a criteria option available under the DoCmd.GoToRecord syntax.
Many Thanks for the great past, current and future help provided here.