Query with selection criteria

John liem

Registered User.
Local time
Today, 21:47
Joined
Jul 15, 2002
Messages
112
I have a query with a "vendor" field which I can select using the combobox (contains 5 vendors) in a form (Fm_Main).
I use this criteria in the "vendor" field to run my query:
[Forms]![Fm_Main]![Cbo_Vend].
It works as long as I choose a vendor from the combobox on the Fm_Main, but how can I get the query of all vendors at once?. I have tried to fill in blank in the combobox, but it doesn't output a result.
John.
 
Hi Lushman,
Thanks for your reply, but I don't know what is variance matrix, I am just a beginner ....
 
Add this in the Or: cell below the Criteria for the Vendor field:-

[Forms]![Fm_Main]![Cbo_Vend] is null



When nothing in the combobox is selected, every record will be returned.
 
Last edited:

Users who are viewing this thread

Back
Top Bottom