Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linking 3 Fields in Main Table to Single Field in Refernce Table

Status
Not open for further replies.

isorders

IS-IT--Management
Dec 6, 2001
102
US
I have a primary table that has OwnerID, PreviousOwnerID and NewOwnerID. I then have tblOwner that has OwnerID, FirstName, LastName, etc.
I can't figure out how to join the OwnerID from tblOwner to PreviousOwnerID, OwnerID and NewOwnerID in the primary table. For reporting purposes I need to pull the Last Name, First Name for each field from the tblOwner.
This may not be the best way to do this, but I want the Owners Names to be consistent and creating three reference tables seems redundant.
 
Hi

In the query design grid, add the tblOwner three times (access will automatically give the two occurences after the first one aliases, tblOwner_1, tblOwner_2

Make a join form first owner field in main table to first tblOwnwer, then from secon Owner field in main table to second owner table, etc

You may need to right click on joins and set accordingly since I assume not very row in main table has all three owners present?
Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
UK
kenneth.reaySPAMNOT@talk21.com
remove SPAMNOT to use
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top