changing report criteria via a form

Andrew Green

New Member
Joined
Mar 23, 2003
Messages
34
Hi all,

This is my setup:

1 query which contains a category field (among other things)
1 report based on this query
1 form with a checkbox for each category available in the category field - note, these checkboxes are not linked to any data, the are simply option settings for producing a summary report.

I wish to tell the query to only print the the categories which are checked on the form. What is the best way to do this?

I have tried using multiple IIF() statements on the query criteria to look at the selected options on the form, but Access reports that the query calculation is too complex.

Any ideas?

Thanks,

Andrew.
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
It's working now. I just put all the options into a single criteria field on the the query.

E.g. IIF([Forms]![ReportForm]![ThisCheckbox], "Category A") Or IIF([Forms]![ReportForm]![ThatCheckbox], "CategoryB") Or... etc.

Andrew.
 
Upvote 0

Forum statistics

Threads
1,221,545
Messages
6,160,446
Members
451,646
Latest member
mmix803

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
Back
Top