Results 1 to 2 of 2
  1. #1
    TEJ09242010 is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2011
    Posts
    1

    Question Access Relationships??

    I am brand new to using access databases but I am in the midst of trying to set one up for controlled distributions of controlled documents.



    Essentially, I have three tables: 1) Listing of all our controlled documents and their properties (doc number, doc title, doc revision, doc type, doc status, effective date), 2) Listing of all our copyholders (name, location, phone number), 3) Document Distribution List which lists copy numbers, quantities, and medium to deliverable (paper, electronic, size, etc)

    What I want to do is create relationships within the Document Distribution List (using 'add from existing fields') from the other two tables so when a request for a new controlled copy comes along, I don't have so much data redundancy.

    For example, in Table 1, I have listed Document XYZ and copyholder Jane Doe from Table 2 wants to receive 1 copy of Document XYZ. I would like to have Table 3 have an added field from Table 1 where I can pull down the applicable document number, which when selected auto fills out it's corresponding details of title, revision, doct type, status and effective date in this Table 3. In addition, after I select the document Jane wants, I want to have another field added to Table 3 from Table 2 which lets me pull down Jane's name to assign her a copy number.

    Does this make sense?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    Maybe. Third table would need foreign key fields to hold the primary key values from the other two tables.

    tblDocDist
    DocID (foreign key for tblDocs primary key)
    CopyholderID (foreign key for tblCopyholders primary key)
    other fields as needed (date of request, date sent, quantity, media)

    Do not have fields in table 3 for document and copyholder details. Retrieve those details when needed by joining the tables on the key fields. This is a basic concept of relational database - do not duplicate data.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Implicit / explicit relationships in Access
    By starson79 in forum Access
    Replies: 4
    Last Post: 01-26-2011, 08:50 AM
  2. Relationships
    By bopsgtir in forum Database Design
    Replies: 1
    Last Post: 01-10-2011, 12:44 PM
  3. Access relationships
    By giovetti in forum Access
    Replies: 4
    Last Post: 12-05-2010, 03:13 PM
  4. Relationships?
    By rosh41 in forum Database Design
    Replies: 2
    Last Post: 06-23-2010, 01:26 PM
  5. Access - car rental relationships
    By ipwn in forum Access
    Replies: 0
    Last Post: 03-09-2009, 07:18 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums