| re: Access Reports and IIF statements
Hi. Main advice is not to do it that way!
Reports, like forms, should be based on queries wherever possible, as queries allow the use of calculated and other special-purpose fields. Access provides totals queries which group by the field combinations you include in the query.
Set up a totals query which counts the number of rows grouped by your two multi-valued fields, setting whatever criteria you need to select the correct rows. Base your report on this query, and your report will then simply be summarising existing counts from the underlying query on which the report is based. This is a much easier approach than trying to use unbound textboxes with bespoke counts.
If you are still not able to set up such a query then please post some details of the tables, field names and types involved (or indeed some sample data showing what it is you want to summarise). We will then be able to provide a skeleton of the SQL for you.
Welcome to Bytes!
-Stewart
|