Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

turn off filter an move between records

Status
Not open for further replies.

simon551

IS-IT--Management
May 4, 2005
249
Hi. I'm using Access 2007 and trying to turn off a filter on my form. I saved this bit of code some time ago to do this, but it doesn't seem to work. It's possible it never did/caveat.

Code:
‘Turn Filter off and move between records

If Me.FilterOn = True Then
Me.Recordset.FindFirst Me.Filter

Me.FilterOn = False
End If
The idea is that a user navigates to a detail page from a page that lists transactions. User then can 'turn off the filter' and navigate between records. But I would like the user to be remain at the record they are viewing and then be able to nav. any suggestions?

Thanks!
-s
 
sorry. stupid. I found the post I submitted here and PHV's advice. I saved the code wrong.

it should be like this:
Code:
Me.FilterOn = False
Me.Recordset.FindFirst Me.Filter
cheers

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top