J
Joseph Greenberg
I have a drop-down box that is defined as two columns, but the first column
is 0 width, so it's not visible (intentionally). The drop-down is bound to a
data field but is populated by a query from a lookup table, and while the
dropdown displays the text from the second column, the database stores the
numbers from the first (invisible) column. I have an outside function that
returns a string that corresponds to the text values shown in the drop-down
(but wouldn't get stored in the database). Does anyone know how I can
essentially lookup the values from the dropdown based on the text string,
and then pass the corresponding number value to the database?
For example, my lookup table and drop down have these values:
1 Red
2 Blue
3 Green
4 Violet
5 Brown
6 Black
My outside function returns a global variable that contains "Violet". How
can I get a "4" to my database? And I can't really change the outside
function.
is 0 width, so it's not visible (intentionally). The drop-down is bound to a
data field but is populated by a query from a lookup table, and while the
dropdown displays the text from the second column, the database stores the
numbers from the first (invisible) column. I have an outside function that
returns a string that corresponds to the text values shown in the drop-down
(but wouldn't get stored in the database). Does anyone know how I can
essentially lookup the values from the dropdown based on the text string,
and then pass the corresponding number value to the database?
For example, my lookup table and drop down have these values:
1 Red
2 Blue
3 Green
4 Violet
5 Brown
6 Black
My outside function returns a global variable that contains "Violet". How
can I get a "4" to my database? And I can't really change the outside
function.