Solved

Lookup table

Posted on 1999-01-07
5
190 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

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…
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…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Suggested Courses
Course of the Month10 days, 2 hours left to enroll

623 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