D
dbad7
I am having trouble using an IIf statement as criteria. It seems simple
enough but does not work. I am using a Combo box to narrow down the condtion
of inventory. My combo box is simple: Good, Bad, All
HAVING
[CONDITION_NAME]=IIf([Forms]![frmMainNew]![cboCondInv]="Good",("Repaired" Or
"New"),IIf([Forms]![frmMainNew]![cboCondInv]="Bad","Defective" Or "BER" Or
"IN-Warranty" Or "To-Outsource",Like "*"))
Access is not letting me use Or in the Then clause, saying it's too
complicated. Is there another way to do this?
enough but does not work. I am using a Combo box to narrow down the condtion
of inventory. My combo box is simple: Good, Bad, All
HAVING
[CONDITION_NAME]=IIf([Forms]![frmMainNew]![cboCondInv]="Good",("Repaired" Or
"New"),IIf([Forms]![frmMainNew]![cboCondInv]="Bad","Defective" Or "BER" Or
"IN-Warranty" Or "To-Outsource",Like "*"))
Access is not letting me use Or in the Then clause, saying it's too
complicated. Is there another way to do this?