Hi all,
I have an issue using the combo box. After going through the various tutorials, I successfully implemented the combobox. However, I could not achieve what I needed. I load data from my database into the combobox successfully but I could not get the right data for use.
My table contains 2 fields ("ItemCategory - Varchar" and "CategoryID - Integer") with the following data:
CategoryID - ItemCategory
101 - Books
125 - Statioinery
243 - Furniture
....
I want to present the ItemCategory to the user and when an item is selected, the categoryID should be returned (just like in VB), eg. if user selects Furniture, the combobox should return 243
I have tried but could not find where to add the CategoryID field. I can only add the list and reference it by item index.
Can my requirement be achieved please?
If yes, I need a guide please.
I have an issue using the combo box. After going through the various tutorials, I successfully implemented the combobox. However, I could not achieve what I needed. I load data from my database into the combobox successfully but I could not get the right data for use.
My table contains 2 fields ("ItemCategory - Varchar" and "CategoryID - Integer") with the following data:
CategoryID - ItemCategory
101 - Books
125 - Statioinery
243 - Furniture
....
I want to present the ItemCategory to the user and when an item is selected, the categoryID should be returned (just like in VB), eg. if user selects Furniture, the combobox should return 243
I have tried but could not find where to add the CategoryID field. I can only add the list and reference it by item index.
Can my requirement be achieved please?
If yes, I need a guide please.