This time you’ll see the name of the current book’ s publisher in the ComboBox. Set the BoundColumn property to the PubID field and run the application again. The value of the BoundColumn property must be an index field so that the JET engine can locate it quickly. The data-bound ComboBox has one more property, Bound Column, which is the name of the field in its own RowSource that links the field displayed in the list with the actual field to which it is bound. But the user now sees IDs in the Combo Box, not their names. The PubID field is also the field that should be displayed on the data-bound ComboBox control. Set the DataField property to the name of the field you want to update in the Database, which is the PubID field.Select the data-bound ComboBox control, and set its DataSource property to Data1 ( the Data control that sees the Titles table).W~want to use the edit box of the data-bound ComboBox control as if it were a regular textbox, bound to the PubID field of the Titles table. The other two behaviors are typical of it data-bound control. You’ve already seen how the first behavior can be implemented with the help of the Rowsource and ListField properties. This sounds like complicated behavior, but it’s all built into the data-bound ComboBox control.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |