Squall_FF8 1 Posted March 19 (edited) Hey Guys, I have a TDBLookupComboBox with all properties set up to show proper info in the DropDown - ListSource, KeyField, ListField. It links to a query that has ID and Name fields. Is it possible to select the appropriate Name, based on an ID, without using a DataSource (the field)? If so - how to do that by code? An example, I have ID = 100, I want the Name with that ID to be select by the combo. Edited March 19 by Squall_FF8 Share this post Link to post
PeterBelow 250 Posted March 19 Try to set the KeyValue property to the ID you want to look up. Share this post Link to post
Squall_FF8 1 Posted Friday at 10:25 AM On 3/19/2025 at 1:03 PM, PeterBelow said: Try to set the KeyValue property to the ID you want to look up. Great, that is exactly what I needed, Thank you!! It works to set the selected item, but also to check what Item is selected. Share this post Link to post