AllExperts > Business Software 
Search      
Business Software
Volunteer
Answers to thousands of questions
 Home · More Business Software Questions · Answer Library  · Encyclopedia ·
More Business Software Answers
Question Library

Ask a question about Business Software
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Scottgem
Expertise
I can answer some questions on a wide variety of business applications, including MS Office, Lotus Smartsuite, Visio, Notes and many others.

Experience
I have over 16 years of experience as an IT professional, supporting a wide variety of business applications.

 
   

You are here:  Experts > Computing/Technology > Business Software > Business Software > Linking Tables

Business Software - Linking Tables


Expert: Scottgem - 7/14/2009

Question
Hi Scott,

I have not been successful.  I think you helped me before.  I am trying to create a relationship (in access 2007) to relate 4 tables.  1.  Caller, 2. Question, 3. Pharmacist, 4. Claimant.

A pharmacist and caller will be be connected to many claimant numbers and questions.

One question will be related to one caller and one claimant.

What is the best way to set up (name) the Primary keys and Foreign keys.  I tried to follow the last diagram but it didn't work :(

Answer
I name my primnary keys using the convention:

tablename % ID

example CallerID, QuestionID, etc. My foreign keys use the same name where possible.

CallerID and PharmacistID are foreign keys in your In your Claimant and Question tables. Also ClaimantID is a FK in the Question table.

Hope this helps,
Scott<>
Microsoft Access MVP 2007
Author: Microsoft Office Access 2007 VBA

Add to this Answer   Ask a Question


 
User Agreement | Privacy Policy | Kids' Privacy Policy | Help
Copyright  © 2008 About, Inc. AllExperts, AllExperts.com, and About.com are registered trademarks of About, Inc. All rights reserved.