CodePudding user response:
The listsource first set, then listfield, keyfield set up is ok,CodePudding user response:
(1) the DataSource propertyThis property is used to connect to edit the data table of data source
(2) the DataField attribute
This property is used to specify the data to edit field name
(3) ListSource properties,
This property is used to provide connection data encoded from the table data
(4) KeyField attribute
This property is used to specify the data encoding from a table of keywords, generally for the data coding field
(5) ListField attribute
This property is used to select data in the table should be displayed in the list box of field name
Through the above five attributes set, can use DBLookupComboBox components drop-down list box people needed to record data