Solved

ADOTable + DBLook

Posted on 2003-11-03
3
423 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 60 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

705 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