I have a table with 2 fields (for simplicity). These are called ID and Accuracy. Accuracy can have either "Correct", "Major Error" or "Minor Error" as a value.
I want to create a report with Accuracy as the criteria which I am doing with a combo box on a form so the user can select one of the three values (or leave it blank to select them all).
The problem I have is that I would also like to be able to report on "Major Error" and "Minor Error" on the same report. I have added a fourth option to my combo box, "Major/Minor Error" and I was planning to use an iif statement as the Accuracy criteria in my query so that if "Major/Minor Error" is selected the criteria becomes "Major Error" or "Minor Error". The query does work if I select one of the first three options but if I choose "Major/Minor Error" I get an error saying
'This expression is typed incorrectly, or is too complicated to be evaluated'.
Can anyone tell me how to get around this?
I want to create a report with Accuracy as the criteria which I am doing with a combo box on a form so the user can select one of the three values (or leave it blank to select them all).
The problem I have is that I would also like to be able to report on "Major Error" and "Minor Error" on the same report. I have added a fourth option to my combo box, "Major/Minor Error" and I was planning to use an iif statement as the Accuracy criteria in my query so that if "Major/Minor Error" is selected the criteria becomes "Major Error" or "Minor Error". The query does work if I select one of the first three options but if I choose "Major/Minor Error" I get an error saying
'This expression is typed incorrectly, or is too complicated to be evaluated'.
Can anyone tell me how to get around this?