Solved

TDBCombobox !!

Posted on 1998-04-07
3
220 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
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

Technology Partners: 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

Title # Comments Views Activity
Using idhttp to login to instagram 2 118
LAN or WAN ? 11 106
Delphi android app hide keyboard 3 42
how can i delete one control based on its tagstring ? 6 36
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…
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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

756 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