Solved

Lookup table

Posted on 1999-01-07
5
182 Views
Last Modified: 2010-04-04
I have two tables one for people name and the other for countries.

People table have some fields like Name and Country_Number. Country table have two fields : Country_Number and Country_Name. I define Country table as a lookup table for People table. When I enter data into People table I want to make a combo box in my  for countries in my program instead of country number, how can I do that.
I use Delphi 3 Client/Server
Thanks in advance
Motaz
0
Comment
Question by:Motaz
  • 3
  • 2
5 Comments
 
LVL 8

Accepted Solution

by:
ZifNab earned 20 total points
ID: 1355142
Hi Motaz,

Go to the People table : double click -> you come in fields editor.
Click right mouse.

Choose add fields (select all)
Choose new field
choose type lookup and fill in the needed stuff (lookupsource, lookupfield, keyfield; etc)

Regards, Zif.
0
 
LVL 7

Author Comment

by:Motaz
ID: 1355143
Did that mean I must not define country table as a lookup table ?
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1355144
no,

you use two tables, one people, one country.

then you use two datasources pointing to one of each table.

then you use the country datasource as lookupsource in your newly created lookupfield.

Zif.
0
 
LVL 7

Author Comment

by:Motaz
ID: 1355145
Okay thanks.
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1355146
when new problems arive, just ask.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
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…
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, f…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

920 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

16 Experts available now in Live!

Get 1:1 Help Now