Tigerlili3
Technical User
I have a combo box with the following as the rowsource:
This rowsource takes the values that are in tblState and adds "(All States)" to the top of the list. The first column (StateAb) is the bound column. The column widths are set at 0";1" so that only the state name shows in the combo box.
I need the stored value for the "(All States)" selection to be null. That's why I have the double quotes for the first column in the UNION query. "(All States)" shows up inthe combo box as a choice, however, if I select it, the combo box looks blank as if I have selected nothing. If I put a the letter A in doubles quotes in place of the red double quotes in the UNION query and select "(All States)" from the combo box, "(All States)" shows up as the selection. I don't want to store a value with the "(All States)" selection. Does anyone know how leave the first column value null, but show "(All States)" in the combo box if I have selected it?
Thanks!
Code:
SELECT tblState.StateAb, tblState.StateName FROM tblState UNION SELECT [COLOR=#ff0000]""[/color],"(All States)" FROM tblState ORDER BY tblState.StateName;
This rowsource takes the values that are in tblState and adds "(All States)" to the top of the list. The first column (StateAb) is the bound column. The column widths are set at 0";1" so that only the state name shows in the combo box.
I need the stored value for the "(All States)" selection to be null. That's why I have the double quotes for the first column in the UNION query. "(All States)" shows up inthe combo box as a choice, however, if I select it, the combo box looks blank as if I have selected nothing. If I put a the letter A in doubles quotes in place of the red double quotes in the UNION query and select "(All States)" from the combo box, "(All States)" shows up as the selection. I don't want to store a value with the "(All States)" selection. Does anyone know how leave the first column value null, but show "(All States)" in the combo box if I have selected it?
Thanks!