Solved

Lookup table

Posted on 1999-01-07
5
186 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
[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
  • 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone 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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

749 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