I have a table with 5 fields (not counting the ID). The last four fields will have either a "YES" in it or the field will be blank
A record will have various combinations of Yes and Blanks and some could be all Yes but none will have all blanks.
The First field is a list of unique Tasks and the other Four columns/fields represent depratments. (contracts dept, Pricing Dept, Proposal Mgmt Dept....)
Some of the tasks in the db are required by more than one group (some are required by all)
One form I have five Toggles (representing the four departments and one for all)
I want to use the Toggle condition (True/False) in the Query Criteria. If the user clicks the Contracts, the results should only show the tasks where the Contracts Field has a "Yes" in for the record. If the User Selects the Contracts and Pricing toggles, then I want the query to show all the Task for both departments where they are "Yes" values. And obviously if the All Toggle is set to True show all Tasks.
I assume an IIF statement is the answer but I cannot think through the complete formula without hitting roadblocks. I cannot do nested if's on each because the formula will stop at the first one where the condition is true.
Like IIF([ToggleContracts]=Tue, "YES",.....
Any suggestion?
I thought of making the table only three fields and putting the words Contracts, Pricing... in it if the Task was required - then trying to use the *Pricing* function but could think that formula all the way through.