I am attempting to use Switch in an Access query statement (using query builder). My statement looks like :
FunctionName: Switch([Table!column] in ("1st"), "First", [Table!column] in ("2ndTest"), "Second"). (there are considerably more conditions) After copying and pasting the statement into my query, it is automatically changed to
FunctionName: Switch([Table!column] in (["1st"]), "[First"], [Table!column] in (["2ndTest"]), ["Second"]).
When I run the query, I get prompted for values for "1st", "First", "2ndTest", and "Second". My other switch statements work fine. Can anyone enlighten me as to why this might be happening?
I tried using the Iif statement instead and got the same results. When I limited my switch to one test condition and a test for true it ran without a hitch. As soon as I added another test, I started getting the prompts again.
Thanks,
Dennis __
FunctionName: Switch([Table!column] in ("1st"), "First", [Table!column] in ("2ndTest"), "Second"). (there are considerably more conditions) After copying and pasting the statement into my query, it is automatically changed to
FunctionName: Switch([Table!column] in (["1st"]), "[First"], [Table!column] in (["2ndTest"]), ["Second"]).
When I run the query, I get prompted for values for "1st", "First", "2ndTest", and "Second". My other switch statements work fine. Can anyone enlighten me as to why this might be happening?
I tried using the Iif statement instead and got the same results. When I limited my switch to one test condition and a test for true it ran without a hitch. As soon as I added another test, I started getting the prompts again.
Thanks,
Dennis __