zaskem
asked on
Set Default Value in a DBLookupComboBox
I'm using a stock version of Delphi 7 and would like to display default values in combo boxes.
I've got DBLookupComboBoxes hooked up to a database source (grabbing values from a lookup table) and working properly; however, I would like to (upon creating a new record) automatically load a default value in the combo box (so as to save the user time by not *having* to select a value if none exists (or isn't applicable), for example).
As it stands right now, a user must manually select values for each combo box upon the creation of a new record...which can be a time-consuming practice (especially if the user selects the value (N/A or none)).
Any help on this would be appreciated. Thanks!
I've got DBLookupComboBoxes hooked up to a database source (grabbing values from a lookup table) and working properly; however, I would like to (upon creating a new record) automatically load a default value in the combo box (so as to save the user time by not *having* to select a value if none exists (or isn't applicable), for example).
As it stands right now, a user must manually select values for each combo box upon the creation of a new record...which can be a time-consuming practice (especially if the user selects the value (N/A or none)).
Any help on this would be appreciated. Thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
mokule,
Thanks for the insight. That has corrected the problem and it's working as anticipated.
Ivanov_G, I will also be looking further into your suggestion for another option elsewhere in the program.
Thanks again!
Thanks for the insight. That has corrected the problem and it's working as anticipated.
Ivanov_G, I will also be looking further into your suggestion for another option elsewhere in the program.
Thanks again!
.KeyValue of LookupDataSet