Hi All,
I have tried to find help on this with no luck. I have a form that prompts a user for criteria, then runs a report (based on a set of queries), dependent upon the user's entry. More specifically the form gives the user the option of choosing "Yes - include all paint numbers" or "No - include a specific number". If "No" is chosen the user enters the paint number into a combo box and clicks a button to run the report.
My problem is I cannot figure out how to run the query based upon either option. Any idea? I'm leaning toward an IIF statement but not sure how to use it.
I have tried to find help on this with no luck. I have a form that prompts a user for criteria, then runs a report (based on a set of queries), dependent upon the user's entry. More specifically the form gives the user the option of choosing "Yes - include all paint numbers" or "No - include a specific number". If "No" is chosen the user enters the paint number into a combo box and clicks a button to run the report.
My problem is I cannot figure out how to run the query based upon either option. Any idea? I'm leaning toward an IIF statement but not sure how to use it.