Board index » delphi » IndexName and TDBLookupComboBox
Patrick Beauchamp
![]() Delphi Developer |
IndexName and TDBLookupComboBox2003-10-20 03:30:21 PM delphi43 I have a Categories table that contains the following: Cat Desc 01 Vegetables 02 Fruits 03 Dairy ... On my form, I have a TDBLookupComboBox control that I want to use to list the categories. In my main table, I have a field Cat that refers to the category is the Categories table. When I run my application, and I drop down the categories, they are sorted in Cat order, which is normal. How do I sort them by Desc, which would make more sense to the end user when the ListField is set to Desc? I tried changin the index to Desc, however, the TDBLookupComboBox does not work because there is not match for the Cat field from the main table anymore. |