I
inungh
I have IIF stament in the query criteria and would like return a text
like following
"CURRENT", "PAST", "CURRENT" or "PAST"
It works for single criteria like "CURRENT", "PAST"
It returns no record when it return "CURRENT" or "PAST"
My query criteria like following:
IIf([Forms]![myForm]![cmbMyOption]![value] = 1,"""" + "CURRENT" +
"""" + " OR " + """" + "PAST" + """",IIf([Forms]![myForm]!
[cmbMyOption].[value] = 2, "CURRENT", "PAST"))
I think the problem is the double quotes. I tried many combinations
and put the criteria in the SQL output field which like "CURRENT" or
"PAST".
It works if I put the criteria manually and works for single returns
like "CURRENT".
Your help is great appreciated,
like following
"CURRENT", "PAST", "CURRENT" or "PAST"
It works for single criteria like "CURRENT", "PAST"
It returns no record when it return "CURRENT" or "PAST"
My query criteria like following:
IIf([Forms]![myForm]![cmbMyOption]![value] = 1,"""" + "CURRENT" +
"""" + " OR " + """" + "PAST" + """",IIf([Forms]![myForm]!
[cmbMyOption].[value] = 2, "CURRENT", "PAST"))
I think the problem is the double quotes. I tried many combinations
and put the criteria in the SQL output field which like "CURRENT" or
"PAST".
It works if I put the criteria manually and works for single returns
like "CURRENT".
Your help is great appreciated,