assassin4213
Registered User.
- Local time
- Today, 06:29
- Joined
- Feb 16, 2004
- Messages
- 16
Hello Everyone,
Here's the scoop. I have a query that sorts data that is referencing an unbound combobox. I have two scenarios.
1. When a vendor is selected in the combobox - I would like the query to sort the data set and show only that vendors data samples.
2. When no vendor is selected in the combobox - I would like the query to default to showing all the vendors in the data set.
I have tried writing a formula in the query statement for the vendor segment. Here's the concept formula that I wrote in the criteria area for strVendor portion of the query.
IIf((IsNull([Forms]![Vendor Fuel Customized Selection]![cboVendor])),(([qryFuel2001].[strVendor]) Is Not Null),[Forms]![Vendor Fuel Customized Selection]![cboVendor])
I tried using an Is Not Null statement since this works on selecting vendor only samples on other queries. However, I can't seem to get it working in this formula. Would anyone have any recommendations on how to get the Is Not Null to work or any other alternatives?
Talk to ya' later,
Greg
Here's the scoop. I have a query that sorts data that is referencing an unbound combobox. I have two scenarios.
1. When a vendor is selected in the combobox - I would like the query to sort the data set and show only that vendors data samples.
2. When no vendor is selected in the combobox - I would like the query to default to showing all the vendors in the data set.
I have tried writing a formula in the query statement for the vendor segment. Here's the concept formula that I wrote in the criteria area for strVendor portion of the query.
IIf((IsNull([Forms]![Vendor Fuel Customized Selection]![cboVendor])),(([qryFuel2001].[strVendor]) Is Not Null),[Forms]![Vendor Fuel Customized Selection]![cboVendor])
I tried using an Is Not Null statement since this works on selecting vendor only samples on other queries. However, I can't seem to get it working in this formula. Would anyone have any recommendations on how to get the Is Not Null to work or any other alternatives?
Talk to ya' later,
Greg