want to filter a report

jakobt

Active Member
Joined
May 31, 2010
Messages
328
Having a report based on record source of a select query with some related table.

I want to run the report for only Countries: France

How can i filter the report on countries france?
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

alansidman

Well-known Member
Joined
Feb 26, 2007
Messages
6,246
Office Version
  1. 365
Platform
  1. Windows
Add a parameter to your query and when you run the report, it will ask for the parameter criteria.
 

Trevor G

Well-known Member
Joined
Jul 17, 2008
Messages
6,704
Office Version
  1. 2016
Platform
  1. Windows
If it is France only then add that into your query as criteria. Or are you wanting to type in a parameter as Alan is suggesting, or do you want to select a country to filter on?
 

jakobt

Active Member
Joined
May 31, 2010
Messages
328
Thank you. However, I want this to be a predefined condition in my query.

Would I need to add a where clause to my query. Again the query combines 3 tables. Customers, product and Market. Primary keys customerid, productid and marketid.

Can I enter a where clause related to where marketid = "france"
 

Trevor G

Well-known Member
Joined
Jul 17, 2008
Messages
6,704
Office Version
  1. 2016
Platform
  1. Windows
Is Marketid a list rather than values? If yes then as you create your query use the marketid and in the criteria type in France
 

Watch MrExcel Video

Forum statistics

Threads
1,133,573
Messages
5,659,606
Members
418,514
Latest member
radonwilson

We've detected that you are using an adblocker.

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.
Go back
Top