Results 1 to 3 of 3
  1. #1
    Vetgeorge is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Florida
    Posts
    29

    Smile How to set up a relationship for multiple test ordering on items

    I'm having trouble setting up the relationships in my database or trying to implement the use of a subform for test ordering. What I'm trying to acomplish: Build a database that my doctors can use to order testing on tissue specimens.
    I have doctors that microscopically examine surgical tissue samples. Each sample has a unique Accession number, that they will enter in the db. Each sample can have multiple parts (example: a lung specimen could have Part A, Part B, etc). Furthermore, each part could subsequently have multiple specialized tests ordered on them (example: Part A requires Test 1, Test 6; Part B requires Test 2, Test 6, etc)

    So far I have built the following tables: One for Doctors name, one for the parts (A-L), one for the Tests, and a main table that includes fields to enter the specimen Accession number, the date, a drop down list to select the doctor, field to select the Part, and the field to select the test.

    What I can't figure out is how to have additional entries for adding more parts and the ability to order more tests on those subsequent parts and still tied to the orginal accession number.
    Any advice? Thanks


    I also uploaded a picture of what I want my db to do
    Click image for larger version. 

Name:	StainDB.jpg 
Views:	21 
Size:	46.0 KB 
ID:	9460

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,622
    Use 'junction' tables to avoid repetitive data entry that would be done in one big 'main' table. Consider:

    tblDoctors
    ID (PK)

    tblTests
    ID (PK)

    tblSampleOrder
    ID (PK)
    DocID (FK)
    TissueType

    tblSampleParts
    ID (PK)
    SampleOrderID (FK)
    Part (A-L)

    tblPartTests
    SamplePartID (FK)
    TestID (FK)

    Use form/subform/subsubform arrangement for data entry.
    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.

  3. #3
    Vetgeorge is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Florida
    Posts
    29
    Thank you for your help about creating the junction table

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

Similar Threads

  1. Replies: 23
    Last Post: 12-06-2011, 09:18 AM
  2. Replies: 2
    Last Post: 11-16-2011, 07:38 PM
  3. Keying in Test answers to Access DB from Written Test
    By CityOfKalamazoo in forum Access
    Replies: 3
    Last Post: 03-01-2010, 08:58 AM
  4. Replies: 5
    Last Post: 06-30-2009, 09:30 AM
  5. Generate a List of Items from "Many" Relationship
    By Hammer Mark in forum Reports
    Replies: 0
    Last Post: 04-20-2009, 07:30 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