Topic: Populate a combobox
Hi All,
.
I have a combobox that I populate with the following script. I wanted to be able to let the user choose between only 2 choices so I didn't want to have to create a separate lookup table for only these 2 choices.
frmEquip.cboInstalledSpare.Items.Add('Installed');
frmEquip.cboInstalledSpare.Items.Add('Spare') ;
.
The script works fine when I'm adding a new record(NewRecord) however when I'm opening a Saved record(ShowRecord) I would like the combobox to show the entry that had been saved previously. And also allow them to change the entry if they need to. I think I may be asking too much from the combobox?
.
Any thoughts?
Thanks
Frank