• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 520
  • Last Modified:

IIF Function return either True or False

Hi all, trust you are well.

MS Access - building a query. I have a Y/N field.

Based on a Tick box on a form: If the tick box is true - return all the values, if the tick box is false - return only false.

I tried this: IIf([forms]![activityBar]![CaseM]=True,OR(True,False),False)

Clearly doesnt work.
1 Solution
 >= IIf([forms]![activityBar]![CaseM]=True,-1, 0) 

Open in new window

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now