Hi,
I have a query that is meant to search through a particular table of values.
I created another field in the query that evaluates whether or not the table of values satisfy the stage of a particular project (it's a lot of embedded IIF statements). This tells me whether or not the project is on STAGE 1, STAGE 2, STAGE 3, STAGE 4, COMPLETE, REQUIRES REVIEW. The actual expression is set up this way - if you are interested:
Now, in my unbounded form I have it set up so that I can search on these particular values. I would like to be able to search as to whether or not the project is NOT COMPLETE. Right now my criteria is set up as suchIIf([Stage_1_Status]="Complete" And [Stage_2_Status]="Confirmed" And Not IsNull([Stage_3_Status]) And [Stage_4_Status]="Complete","Complete",
IIf([Stage_1_Status]="Complete" And [Stage_2_Status]="Confirmed" And Not IsNull([Stage_3_Status]) And [Stage_4_Status]<>"Complete","Stage 4",
IIf([Stage_1_Status]="Complete" And [Stage_2_Status]="Confirmed" And Not IsNull([Stage_3_Status]) And IsNull([Stage_4_Status]),"Stage 4",
IIf([Stage_1_Status]="Complete" And [Stage_2_Status]="Confirmed" And IsNull([Stage_3_Status]),"Stage 3",
IIf([Stage_1_Status]="Complete" And [Stage_2_Status]<>"Confirmed","Stage 2",
IIf([Stage_1_Status]="Complete" And IsNull([Stage_2_Status]),"Stage 2",
IIf([Stage_1_Status]<>"Complete","Stage 1","Requires Review")))))))
Like "*" & [Forms]![MainNavigation]![NavigationSubform].[Form]![ProjectStatus] & "*" Or Is Null
I would like it so that I have a drop-down that has the values STAGE 1, STAGE 2, STAGE 3, STAGE 4, COMPLETE, NOT COMPLETE, REQUIRES REVIEW.
I tried to place an IIF statement in my criteria, but it is just not working.
Any suggestions?