I am having issues with the criteria for a Query. What I am trying to do is if a control (sumcheck) is checked it filters the summary field with what is in the contents control or doesn't filter the field and if the sumcheck control is not checked it filters the DOC field with what is in the contents control or doesn't filter the field. When one iif statement is true the other will always be false. I listed below the controls in the form and the criteria in each field in the Report Query. Everything else works fine except when I added the criteria to both fields. Please let me know what would be the correct iif statement to put in each. Thank you for your help.
BoxesFilter Form
sumcheck control = True/False
contents control = text box
Report Query
DOC Field Critieria = IIf([Forms]![BoxesFilter]![sumcheck]=False,Like "*" & [Forms]![BoxesFilter]![contents] & "*")
Summary Field Criteria = IIf([Forms]![BoxesFilter]![sumcheck]=True,Like "*" & [Forms]![BoxesFilter]![contents] & "*")