Hi guys
I have a problem with filtering a query in criteria using either iff or switch builtin function. my codes look like this
the function works fine except for value 4 highlighted in bold.
The query just didnt return the result i want. I suspect its the
switch function not liking to evaluate the "Not like" part. I dont know how to go around this as i can only base on the prefix, namely SysReq, ACR, ACSR
Thank you for your ideas...
I have a problem with filtering a query in criteria using either iff or switch builtin function. my codes look like this
Code:
Like Switch([Forms]![frmMain]![grpReq]=1,"SysReq*",[Forms]![frmMain]![grpReq]=2,"ACR*",[Forms]![frmMain]![grpReq]=3,"ACSR*",
[Forms]![frmMain]![grpReq]=4, [B]not like "SysReq*" or "ACS*"[/B])
The query just didnt return the result i want. I suspect its the
switch function not liking to evaluate the "Not like" part. I dont know how to go around this as i can only base on the prefix, namely SysReq, ACR, ACSR
Thank you for your ideas...