PDA

View Full Version : Solved: how to activate filter in report



jepperly
05-14-2010, 11:02 PM
Hi there, how can i filter a report? like in DataSheet where the user can select the row and filter it, i want the same thing when the report is displayed to have that kind of functionality, thanks for your help in advance...

OBP
05-15-2010, 03:20 AM
jepperly, welcome to the Forum.
The simplest way to Filter Reports is to use a Form to enter what you want to be the filter and then apply that to a query that provides the report with it's data.
You can also use VBA generated SQL to overwrite the Query each time, this is best used with very complicated Filtering where lots of fields are involved.
You can also activate the Report's own Filter using the Docmd statement that opens the Report, but it is less flexible than th eother methods.

jepperly
05-15-2010, 08:16 AM
thanks for the help, i guess i'll try what you said regarding with the forms.

OBP
05-16-2010, 03:13 AM
If you need further help I can provide examples of how to each type, there are even some already on this forum.