Solved

List of a Combobox

Posted on 2002-07-10
4
206 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
  • 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

810 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