5 pts.
 Populating one combobox in Delphi 7 from another?
I have one combobox in which you select an option. What is the sql used in the query to restrict the second combobox depending on the first value. All I seem able to get is: [SELECT Name_Of_Race FROM Races WHERE Name_Of_Allegiance = DBLookupComboBox1.Value] Here, when I press the button to set the first combobox as the selected value, the second one appears but with no values in it. I have replaced DBLookupCombobox1.Value with a correct value and the second combobox behaved as expected, so I can only presume I am using an incorrect identifier. If anyone could help it would be much appreciated. Thanks ! :)

Software/Hardware used:
ASKED: March 27, 2009  2:55 PM
UPDATED: April 1, 2009  11:56 PM

Answer Wiki:
You might need to use the 'text' property instead of 'value'. Also, you might need to concatenate quotes before and after DBLookupComboBox1.text, since you are comparing strings. --------------------------
Last Wiki Answer Submitted:  April 1, 2009  11:56 pm  by  carlosdl   63,580 pts.
All Answer Wiki Contributors:  carlosdl   63,580 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _