ComboBox show text value and query result ?

Nyanko

Registered User.
Local time
Today, 09:15
Joined
Apr 21, 2005
Messages
57
Hi,

I wonder if this is possible...

I have a combo box to select a list of years generated by a query. Can I add the value ALL into the list ?

Example :
ALL
2016
2015
2014
2013
etc...

I have "ALL" set to the default value and it appears selectable as long as the dropdown isn't selected as it isn't in the list. Can it be included in the list ?
 
It can be, but you need to change row source to something like this (assuming your original source was YourQuery and year field was sYear):
Code:
SELECT YourQuery.sYear FROM YourQuery UNION SELECT '(All)' FROM YourQuery;
 
Ahh I see !
Thank you :)
 

Users who are viewing this thread

Back
Top Bottom