Hello!
I am more or less new in Access, and I am creating a Database using different tables. I have made a Union Query to put together some common fields for all tables and I am trying to define criteria. I have a field called [Proj Type], which can either contain "A" or "B". This is the problematic part of my code:
WHERE [Proj Type]=IIf(([Forms]![Main Menu]![Frame73])=1,"A",IIf(([Forms]![Main Menu]![Frame73])=2,"B",[Proj Type] Is Not Null))
[Frame73] is an option box in a form which can either take values for 1 (select only "A"), 2 (select only "B") or 3(select both). For 1 and 2 I am fine and the query works well, but for 3 it just comes up blank. Any clue why?
Thank you for your help, I am really stuck on this.
R.
I am more or less new in Access, and I am creating a Database using different tables. I have made a Union Query to put together some common fields for all tables and I am trying to define criteria. I have a field called [Proj Type], which can either contain "A" or "B". This is the problematic part of my code:
WHERE [Proj Type]=IIf(([Forms]![Main Menu]![Frame73])=1,"A",IIf(([Forms]![Main Menu]![Frame73])=2,"B",[Proj Type] Is Not Null))
[Frame73] is an option box in a form which can either take values for 1 (select only "A"), 2 (select only "B") or 3(select both). For 1 and 2 I am fine and the query works well, but for 3 it just comes up blank. Any clue why?
Thank you for your help, I am really stuck on this.
R.