Solved

List of a Combobox

Posted on 2002-07-10
4
208 Views
Last Modified: 2010-04-04
Table1: List for the Combobox
Table2: Table to be updated
How do I get the items/list of a combobox from Table1 so as when TAble1 is updated all the combobox connected to that table will also be updated? The combobox will also be used to update Table2, like when I click an Add button and choose an item from the combobox and then click Update button, the item from the combobox together with other fields will be added as a new record for Table2. Hope somebody could help me ASAP. Thanks.
0
Comment
Question by:sharol
[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
  • 2
4 Comments
 
LVL 27

Expert Comment

by:kretzschmar
ID: 7145167
maybe you need to
use a tdblookupcombobox

0
 

Author Comment

by:sharol
ID: 7145266
im just new in delphi, please explain further. thanks.
0
 
LVL 3

Accepted Solution

by:
marcoszorrilla earned 100 total points
ID: 7145286
As Kretschmar say you must use a TdDlookupCombobox, because this component has a Source and Target.
DataSource:The Table where the field to update is located.
DataField:The field to Update.

ListSource:The Table where the field is located.
ListField:List of fields to show separeted with ;
KeyField:The Field to Update in the source.

Best Regards.
Marcos.
0
 

Author Comment

by:sharol
ID: 7155999
Thanks also to kretzschmar, you're idea was very good. But it was marcoszorilla who explained it in detail that's why I was able to make it work. thanks a lot.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

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