Getting column values from TAdvDBLookupComboBox

I have a TAdvDBLookupCombobox on a form, with 3 columns:  ID, First Name, Last Name.


I now want to print a report using this information.  I can print the ID, using AdvDBLookupCombobox1.text property, but I do not see a property to get the matching name information.  Is it possible to retrieve this information from the combo box?

Thanks.

You should be able to retrieve this via the dataset. The ListSource DB record points at the selected item in TAdvDBLookupComboBox and then you can retrieve the values via ListSpurce.FieldByName(FieldName)

AdvDBLookupCombobox1.ListSource.FieldByName('FirstName') rejects with error 

[dcc64 Error] NRUnit1.pas(248): E2003 Undeclared identifier: 'FieldByName'

OK, I was too literal with your reply, changing the code to

ADODataSource4.FieldByName('F...') compiles and works.

Thanks!