gheyman
Well-known Member
- Joined
- Nov 14, 2005
- Messages
- 2,347
- Office Version
- 365
- Platform
- Windows
I have a query where I use the value from a Combo box on a form as the criteria
Forms]![frmEstimates]![ComboPidSelected]
This woked fine. But I need to adjust it so that when nothing is selected in the Combo Box that the query puled Everything. So I tried an Iff formula
IIf(IsNull([Forms]![frmEstimates]![ComboPidSelected]),"*",[Forms]![frmEstimates]![ComboPidSelected])
Is my formula wrong or maybe this is something you cannot do.
I get an error message: "This Calculated column contains an invalid expression"
Pre IIf statement it worked fine.
Forms]![frmEstimates]![ComboPidSelected]
This woked fine. But I need to adjust it so that when nothing is selected in the Combo Box that the query puled Everything. So I tried an Iff formula
IIf(IsNull([Forms]![frmEstimates]![ComboPidSelected]),"*",[Forms]![frmEstimates]![ComboPidSelected])
Is my formula wrong or maybe this is something you cannot do.
I get an error message: "This Calculated column contains an invalid expression"
Pre IIf statement it worked fine.