Share via

Custom Flag field multiple condition formula

Anonymous
2013-02-14T17:14:12+00:00

Greetings!

I am trying to autopopulate one of the custom Flag field, based on the values of 2 different fields.

Here is the formula that I tried:

Flag4 == IIf(([Number4]=0) And [Text3]="Assay","No","Yes")

this looks at Number field to check for 0 AND Outline code4 field to check for the value lookup value "Assay".

If BOTH these conditions are satisfied, system should populate the custom Flag4 field with an "Yes". Else with a "No".

Unfortunately, I am not getting the correct value with the formula above. Can I get some advise on this logic?

Thank you in advance for help!

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2013-02-14T18:53:53+00:00

    Sct80,

    IIf functions are:

    Condition to be tested: in your cae Number 4 = 0 and Test = Assay

    Result if TRUE  = "No"

    Result if FALSE = "Yes"

    So, you have things backwards.

    See:

    http://zo-d.com/blog/archives/programming/microsoft-project-tip-formulas-and-the-iif-statement.html

    Was this answer helpful?

    0 comments No comments