Results 1 to 5 of 5
  1. #1
    Vetgeorge is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Oct 2012
    Location
    Florida
    Posts
    29

    Confused about setting up tables and relationships


    I am trying to set up a staining quality db to monitor stains we prepare in-house to stain cell biopsy samples. Basically, we make a stain solution, that solution is composed of "ingredients." Each ingredient has a manufacturer lot number. When we make a batch, we assign our batch an in-house lot number as well as preparation date. Then we stain a control sample and evaluate the staining quality.
    The ingredients always remain the same, but their lot numbers may change. Each time we make a new batch, we assign a new lot number to it.

    Below is a diagram/example. I need assistance in figuring out how many tables to create and setting up the relationships. Thank you for any help you may offer.
    Date Prepared Lot Number Quality Evaluation
    Hematoxylin Stain 1/1/2017 1 Acceptable
    Component 1 Hematoxylin dye A123
    Component 2 Aluminum potassium sulphate B234
    Component 3 Sodium iodate C345
    Hematoxylin Stain 2/1/2017 2 Acceptable
    Component 1 Hematoxylin dye A123
    Component 2 Aluminum potassium sulphate B234
    Component 3 Sodium iodate C345
    Hematoxylin Stain 2/15/2017 3 Unacceptable
    Component 1 Hematoxylin dye A890
    Component 2 Aluminum potassium sulphate B555
    Component 3 Sodium iodate C710
    Last edited by Vetgeorge; 08-26-2017 at 07:05 AM. Reason: Title should read tables, not tabkes

  2. #2
    kd2017 is offline Well, I tried at least.
    Windows 10 Access 2016
    Join Date
    Jul 2017
    Posts
    1,142
    Can an ingredient from a single mfr lot be used in multiple solutions?

  3. #3
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Here is a link to articles/tutorials on database design and planning.

    I recommend you try (work through) 1 or 2 of the tutorials identified in the practical experience area. Then, write a description of your "requirements" and use the process from the tutorial(s), and create your draft design. You will learn the process if you do the work. It is a definitely a learning by experience approach and using pencil and paper is recommended.

    Don't be too quick to jump into physical Access.

    Good luck.

  4. #4
    kd2017 is offline Well, I tried at least.
    Windows 10 Access 2016
    Join Date
    Jul 2017
    Posts
    1,142
    Here is a model I'm imagining from your description, it has more information than you asked for and maybe more than you need... But as orange said you and your organization really need to work together to figure out your requirements. I'm not telling you this is how it's done or supposed to be done.

    Click image for larger version. 

Name:	5.png 
Views:	12 
Size:	21.4 KB 
ID:	30089

    OR if the solutions are truly always the same then something like this might work:
    Click image for larger version. 

Name:	6.png 
Views:	11 
Size:	31.0 KB 
ID:	30090

  5. #5
    Vetgeorge is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Oct 2012
    Location
    Florida
    Posts
    29
    Thank you orange and kd for your help!
    I did have the information drawn out on paper and thats how my diagram came about. I just couldn't figure out what element(s) needed to be joined together with relationships / foreign keys. The other problem which kd brought up is that the chemical components can be used in making other stain solutions. Which added to my confusion.


    kd you did include inormation which i knew was also going to be in the database, such as the preparer's ID, the reviewer's ID, extra things i left out of my original question just to simplify things. You're right, there are going to be other items that will be added. This is a great start. I'm going to try building it and see how far I can get.

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

Similar Threads

  1. very confused about relationships
    By devxweb in forum Access
    Replies: 3
    Last Post: 12-20-2012, 06:47 AM
  2. I am a bit confused by this one
    By wubbit in forum Access
    Replies: 7
    Last Post: 05-15-2012, 03:18 PM
  3. Setting correct relationships
    By rfalv32 in forum Access
    Replies: 1
    Last Post: 10-22-2011, 07:59 PM
  4. Setting Up Complex Relationships
    By seanbhola in forum Access
    Replies: 3
    Last Post: 05-15-2011, 11:47 PM
  5. Confused about relationships and tables
    By MGJP in forum Database Design
    Replies: 4
    Last Post: 01-19-2011, 09:20 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