A
alex
Using Access ‘03
I’m trying to get this function to work in the criteria of a query:
IIf([forms]![frmA]![comBox]="Combined","Value1" Or “Value2”, [forms]!
[frmA]![comBox])
It returns an error saying the function is too complicated.
The problem is the ‘Or’ inside the function.
This works:
IIf([forms]![frmA]![comBox]="Combined","Value1" , [forms]![frmA]!
[comBox])
As does this:
"Value1" Or “Value2”
Is there a trick to the IIF function? Or, do I need a different one?
I suppose I could do this on two lines in the QBE:
IIf([forms]![frmA]![comBox]="Combined","Value1" , [forms]![frmA]!
[comBox])
IIf([forms]![frmA]![comBox]="Combined","Value2" , [forms]![frmA]!
[comBox])
But that seems a bit redundant.
Thanks,
alex
I’m trying to get this function to work in the criteria of a query:
IIf([forms]![frmA]![comBox]="Combined","Value1" Or “Value2”, [forms]!
[frmA]![comBox])
It returns an error saying the function is too complicated.
The problem is the ‘Or’ inside the function.
This works:
IIf([forms]![frmA]![comBox]="Combined","Value1" , [forms]![frmA]!
[comBox])
As does this:
"Value1" Or “Value2”
Is there a trick to the IIF function? Or, do I need a different one?
I suppose I could do this on two lines in the QBE:
IIf([forms]![frmA]![comBox]="Combined","Value1" , [forms]![frmA]!
[comBox])
IIf([forms]![frmA]![comBox]="Combined","Value2" , [forms]![frmA]!
[comBox])
But that seems a bit redundant.
Thanks,
alex