Solved

TDBCombobox !!

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

708 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now