how to add select all option in combo box

vaibhav2015

Registered User.
Local time
Today, 21:07
Joined
Sep 15, 2015
Messages
25
Hi,
I have created Form with 2 combo box. I want to add "select all" option in combo box. Please advice how I can add the option.
 
sorry, deleted other question.
 
Hi,
I tried that and create below union query and I can see list of plants in combo box. but I am not able to get select all option .

SELECT [plant2] & "All" FROM [ACT_Sub_table] UNION SELECT [Plant] FROM [Plant data ACT table];
 
Try

SELECT "All" As Plant FROM [Plant data ACT table] UNION SELECT [Plant] FROM [Plant data ACT table];
 
Hi,
I have tried above union query but I got error message " The value you entered isn't valid for this field."
Plant column is short text.

Please advice.
 
SELECT "All" FROM [Plant data ACT table] UNION SELECT [Plant] FROM [Plant data ACT table];
 
thanks I tried that but I got same error message again.
Do I need to add "All" word in table ?
 
no , you put this in your combo/listbox Row source.
 
ok thanks , If have plant column in Number format, then how I can write union query.

Please advice.
 
just the same, but on the resulting query after the union your Plant column will be coverted to string.
 
Is there also a description field? You could do:

SELECT Null As Plant, "All" As Description FROM [Plant data ACT table] UNION SELECT [Plant], PlantDesc FROM [Plant data ACT table];
 

Users who are viewing this thread

Back
Top Bottom