Typically, it is best to based all Forms and Reports on Queries, and not on Tables directly.
If they are based on Queries, you can add any Filters and calculations that you like, and easily change them.
You can even use Parameter Queries, which will prompt the user to enter a filter value at run-time.
Actually I set the filter on my Queries but when I base on the Queries to create the report. It don't generated out what base on the filter I set on my queries. I want to hard-coded it rather than let user input it.
I filter to display [English] on queries but it still display other all subject on my report.
If sounds like the Query is NOT the Record Source of your Report.
If you open your Report, and go to the Properties, see what the Record Source is set to.
As Xenou stated, the usual order of events is to create the Query first, then create the Report off of the Query, not the Table.
If you do that, the Record Source of the Query will automatically be set to your Query. And you can edit the Query after that, and those changes will be reflected on the Report.
We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel
Which adblocker are you using?
Disable AdBlock
Follow these easy steps to disable AdBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the icon in the browser’s toolbar. 2)Click on the "Pause on this site" option.
Go back
Disable AdBlock Plus
Follow these easy steps to disable AdBlock Plus
1)Click on the icon in the browser’s toolbar. 2)Click on the toggle to disable it for "mrexcel.com".
Go back
Disable uBlock Origin
Follow these easy steps to disable uBlock Origin
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.
Go back
Disable uBlock
Follow these easy steps to disable uBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.