Allow No Selection for ComboBox - what is the value?
I have two comboboxes on a form. Both are filled from tables. I'm trying to give the option to not choose a value from one of the comboboxes. Both comboboxes have keyvalues pulled from the tables. What is the value of the keyvalue if no selection is made? Is it null, 0, -1, etc?
OR...
Is there a way to add a "none" selection to each box and then use that value?
I need to have a value if no selection is made to use in a query.
Thanks
OR...
Is there a way to add a "none" selection to each box and then use that value?
I need to have a value if no selection is made to use in a query.
Thanks
Comments
when i create the query paramaters i point them to precreated report variables,
whose values are preset to predetermined values, i modify the variables from either combobox selections
or radio btn selections, just remember when passing string values to the variabled to
use extra string delimiters.
include the apostrophe string delimiters or the value will be treated as an expression and trigger the
ogv (ongetvalue)event to try to obtain a value.
I know to put single quotes around the value when assigning to a string variable: I think that is what you are telling me. Please let me know if I'm missing something.
I currently have the keyfields property of each combobox set to a value. The query then uses the keyvalue.
The params property of each query is:
The comboboxes are on a DialogPage. I initialize in the OnShow event. ComboBox1 is alphanumeric. ComboBox2 is numeric.
Please let me know if there is anything wrong with that approach.
I could create variables and pass them to the keyvalues used in the query when the user clicks the OK button on the DialogPage.
Thanks for your replies. I'm still learning.
go with it.