Happy Holidays!
I have a table called TA_Runs with a "Run_ID" field that contain either "Summer" or "Spring". Accordingly, I have created a report which is filtered by either "Spring" or "Summer", and on the report is a text field in the header area that displays the filtered season.
I would like to code the text box to either show the filtered season (Spring or Summer), or if unfiltered (showing both seasons) to display "All Records"..
Here is the expression used in the text box on the report form:
=IIf([RUN_ID]="SUMMER",[RUN_ID],IIf([RUN_ID]="SPRING",[RUN_ID],IIf([RUN_ID]="SUMMER" AND [RUN_ID]="SPRING","ALL RECORDS",[RUN_ID])))
It works if either SUMMER or SPRING is filtered, but when all records are in view, the box displays either SUMMER or SPRING.
Again, I'd like the box to display "ALL RECORDS" when report is unfiltered.
Thanks,