Search code examples
sqlms-accessms-access-forms

Access query criteria from check box in from


Please help me to solve the below query criteria based on a checkbox in the form.

IIf([Forms]![TYPEBRANDLOCATION-MAINFORM]![CHKAGE4plus]= True,>=4,>=0)

The result returns only the value with 0.

Please help to solve this.


Solution

  • You could use this expression:

    >=IIf([Forms]![TYPEBRANDLOCATION-MAINFORM]![CHKAGE4plus],4,0)