Hi . I´m relly new using C++ Builder and MYDAC for accessing a MySQL Database and have a problem :
When I add a DBLookupComboBox to my form, I select the DataSource and the DataField (wich are yet working with others DBEdits Objects in the same Form) and the ComboBox seems to never make a link with its data source : the DBLookupComboBox Field clears its name and shows no data (as if it is null), and if I run the project, this field shows no data. Neither can focus on it.
I suposse it has a simple solution. What is it ?
Thanks !!!
Can´t make a DBLookupComboBox retrieve data
Re: Can´t make a DBLookupComboBox retrieve data
This appears to be a C++ forum question not a MySQL question however, that is not for me to say.
I do not use C++ but, if I were using Delphi, I would set ListSource to your table of values you wish to look up, ListField to the field(s) you wish to display and KeyField to the field you wish to return the value of to DataField.
Hope this helps.
I do not use C++ but, if I were using Delphi, I would set ListSource to your table of values you wish to look up, ListField to the field(s) you wish to display and KeyField to the field you wish to return the value of to DataField.
Hope this helps.