|
Question : MS Access Filter all records on on a Form
|
|
I am trying to create a field that would filter a form based on a value you put into the filter field and find all values in all fields on the form based on the filter term entered into the filter field.
|
|
Answer : MS Access Filter all records on on a Form
|
|
With my code you would put: me.RecordSource = "Select * From qryDailyActivityArchive Where Date_Visited = #" & text129 & "#"
With wiswallds code: Me.Filter = "Date_Visited = #" & text129 & "#" Me.FilterOn = True
The only difference is in my code only the records you want are in the recordsource. In wiswalld's, all the records are still loaded, they are just 'hidden', or filtered out. The user could un-click the 'filter' button at the top to see all the records again (which could be a good thing if you want it that way)
|
|
|