Question : Using IIF statement in Access Query Criteria

Hi,

I'm trying to design a query in access xp to evaluate form input and return multiple criteria in a query.  Currently, I have a form with an combo box for choosing from one of several different machine cells (cell1, cell2, etc).  When the user selects a cell and clicks a submit button to generate a report, I want the undelying query to look at the cell submited, and then to use the machines in that cell as the query criteria.  For example, if I wanted to check productivity for cell5, which consists of machines 1,2,3 and 4, then when I select cell5 on the form and submit, the query sees that cell5 was selected and then does a search for only records that pertain to machines 1,2,3 and 4.

I could write this up in vb using a CASE statement, but I have no idea how to do it in SQL.  Can someone please give me a hand?

Thanks!

Answer : Using IIF statement in Access Query Criteria

Closed, 500 points refunded.
BooMod
Special Ops Mod
Random Solutions  
 
programming4us programming4us