Solved

TDBCombobox !!

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

Suggested Solutions

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
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…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

792 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