View Full Version : Help print original value of FK


josephbupe
07-04-2010, 01:25 PM
Hi,

Please, I need help to print Foreign Keys (CrimeID) back to original values (eg Theft) as stored in the table tblCrimes.
My tables are:

tblPersons (PersonID=PK)
tblCrimes (CrimeID=PK)
tblPersons_Crimes (Person_CrimeID=PK, CrimeID=FK)

Please, how can I do this?

Joseph

SteveSchapel
07-04-2010, 01:41 PM
Joseph,

If I understand you correctly, I think you would simply make a query that includes both tables, joined on the CrimeID field. This will give you access to the CrimeName (or whatever it's called) field from the tblCrimes table, which you can then include in your report.

josephbupe
07-04-2010, 02:49 PM
Hi,

Thanx Steve it worked.

Stay well.

Joseph