pungentSapling
NeedHotSauce?
- Local time
- Today, 13:46
- Joined
- Apr 4, 2002
- Messages
- 116
why does this expression not work?
it is the criteria in a query
I am trying to make the query return everything in the field if nothing is selected in the combo box where the criteria comes from.
IIf(IsNull([Forms]![frmVendors]![cboComponent]),"",([Vendor].[Component]) Like "*" & [Forms]![frmVendors]![cboComponent] & "*")
it is not giving errors but it comes up with no results
oyy my head
this much works
Like "*" & [Forms]![frmVendors]![cboComponent] & "*"
it is the criteria in a query
I am trying to make the query return everything in the field if nothing is selected in the combo box where the criteria comes from.
IIf(IsNull([Forms]![frmVendors]![cboComponent]),"",([Vendor].[Component]) Like "*" & [Forms]![frmVendors]![cboComponent] & "*")
it is not giving errors but it comes up with no results
oyy my head
this much works
Like "*" & [Forms]![frmVendors]![cboComponent] & "*"
Last edited: