How to realize that when choosing a specific item from a combobox, it is recorded in a specific field in the database?
1 answer
It's easier to use something like DBLookupComboBox . This component has Datasource and Listsource . Datasource is the result of your main selection (and the Datafield property is the field you are going to change), and Listsource is what is shown in the drop-down list (and the KeyField property is the field whose value you will write to the database).
|