Dblookupcombobox Doubt - Delphi 6

Asked

Viewed 214 times

0

Good morning.

I’m using Delphi 6 and I’m having a question, I have a table of students linked to a table of disciplines, and these disciplines are displayed within a Dblookupcombobox, only when I select a particular student, I would like the discipline that he is linked to already appear in the box of this Combobox, without needing this box because it does not appear first, only when you click and show the list of disciplines.

Att.,

Gustavo.

1 answer

0

For this you need to configure Dblookupcombobox correctly:

  • Listsource => The Datasource that provides data from the table "Disciplines"

  • Listfield => The field in the "Disciplines" table that shows the name of the discipline.

  • Keyfield => The Primary Key field of the table "Disciplines".

If you want to modify the Discipline field in the "Students" table, you need to also configure:

  • Datasource => The Datasource that will receive the data, in this case the "Students".
  • Datafield => The Foreign Key field that will receive the Keyfield value.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.