?
Solved

ADOTable + DBLook

Posted on 2003-11-03
3
Medium Priority
?
424 Views
Last Modified: 2010-04-05
What is the diference between DBLookUpComboBox and DBComboBox ?
I have a ADOTable
how can i add dinstinct values from the adotable in one of this below (DBLookUpComboBox and DBComboBox)
Thanks
0
Comment
Question by:tinti
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 3

Expert Comment

by:marcoszorrilla
ID: 9671228
Basically a DbCombobox has only DataField and DataSource it can sho data from a Table.

But DblookUpCombobox has a DaTasource and a ListSource its say you can show values from a table and save in anohter table the DataSource.

Best Regards.
Marcos.
0
 

Author Comment

by:tinti
ID: 9671401
But  a little source code if is possible
Thanks
0
 
LVL 27

Accepted Solution

by:
kretzschmar earned 240 total points
ID: 9677141
a dbcombobox inserts the selected item as is in teh databasefield

a dblookupcombobox inserts the keyfield of the selected item from the lookuptable in the databasefield

any source you don't have, because usual all is adjusted at designtime -> no code needed

a sample configuration for the dblookupcombo

lets have a salut-table (two fields)

Salut_ID Salut_Text
1 Mister
2 Misstress
3 Miss
....

and a adresstable like

Adress_ID Salut_ID Name ...
1 1 Kretzschmar
...

now you can define for the Field Salut_ID from adress a lookup
to the saluttable

the property-entries in the dblookupcombobox are

Datasource -> TDatasource linked to the Adress-Dataset
DataField -> Field Salut_ID from Adress
KeyField -> Field Salut_ID from Table Salut
ListSource -> TDatasource linked to the Salut-Dataset
ListField -> Field Salut_Text from Salut

meikl ;-)
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses
Course of the Month11 days, 14 hours left to enroll

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question