Solved

TDBCombobox !!

Posted on 1998-04-07
3
221 Views
Last Modified: 2010-04-06
I whant to fill up my Combobox whit a table of access data base.  Only the fisth data is fill up!!  why??
0
Comment
Question by:gumbi
[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
 

Expert Comment

by:rammstein
ID: 1361326
Could you please be a bit more precise about your problem by giving us the chance to see some sample-sourcecode?
0
 

Accepted Solution

by:
paulo_psa earned 200 total points
ID: 1361327
Hi Gumbi,

If I understood your question.... You need to load the registers from your table in the items property of your dbcombobox.

Try this using the oncreate event of the form:

procedure TMainForm.FormCreate(Sender: TObject);
begin
     table1.open;
     table1.first;
while not table1.eof do
     begin
          DBComboBox1.items.add(table1.FieldByName('fieldname').AsString);
         table1.next;
     end;
end;1


Regards....
0
 

Expert Comment

by:bennyo
ID: 1361328
Why don't you use a TDBLookupCombobox and don't fill the datasource and datafield. ?
0

Featured Post

Independent Software Vendors: 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

Suggested Solutions

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…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

751 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