Forum Discussion
Tony2021
Sep 05, 2022Iron Contributor
Syntax error - IIF and Dlookup
Hello Experts, I have a union query and I am trying to add a dlookup to it. I am getting a syntax but I dont see where it is? think its on the dlookup part and I have been adding parenthesis bu...
- Sep 05, 2022
Hi,
From what you posted it looks as if the first IIf is missing its closing parenthesis. So, maybe another ) before " as TEST" does the trick.
Servus
Karl
Access News
Access DevCon
arnel_gp
Sep 06, 2022Iron Contributor
also you do not need to Concatenate, just use:
IIf([GroupDate] Like "Coming Due*", ...
IIf([GroupDate] Like "Coming Due*", ...