Results 1 to 7 of 7
  1. #1
    Northern Lights is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2013
    Posts
    4

    Posting multiple Values or entries to one record

    Hello All,

    I am trying to create a database for a company I work with which creates a food product which needs to be traceable from creation to finish. I have created a table with all of the necessary information for the creation of a batch. However, there are two aspects which puzzle me.
    1. During this batch creation, we add water multiple times which we record each time, i.e., 2cups, 2 cups, 2cups, etc. I have a field for "water", and wish to record each instance and amount of water added, but only want one record for the complete batch. Also I only need the total water amount in the batch record, but want to be able to expand to see the individual amounts as needed.


    2. Also, we need to record various readings (temp, etc.) throughout batch creation. Again, same problem as before.

    What is the best way to do this? I want to be able to reference this info anytime I want to check creation specs for each individual batch.

    I am using forms for data entry.

    Thanks!

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    The BEST way is NOT to use 1 record.
    You want multiple records in the order needed. But all bound to the master record 'recipe'.
    Water would just be another single record , but added many times. (1 to many).
    (I worked for McCormick)

  3. #3
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Multi-value fields have issues and experienced database developers avoid them.

    As ranman points out, in a normalized data structure, each addition of water would be a new record. Then queries would calculate the total quantity of water.
    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.

  4. #4
    Northern Lights is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2013
    Posts
    4
    ranman,
    Do I need to split the water out into separate tables? I am including a sample table with all the info I need for 1 batch in the fields. We add hot or cold water 4 units at a time, and want to record each instance. When I look at Batch 193 I want to see the overall composition picture including how much water was added as it was added, but I don't necessarily need to see it broken out right away. Would a query be better for this?
    Attached Files Attached Files

  5. #5
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Your options are:

    1. normalized structure - a related table with a record for each water addition

    2. multiple fields - 4 water fields, 4 temperature fields, etc.

    3. multi-value fields
    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.

  6. #6
    Northern Lights is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2013
    Posts
    4
    Correct, I agree. I was thinking of a subdata sheet or something.

  7. #7
    Northern Lights is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2013
    Posts
    4
    Thanks for your help, I think I'm getting it.

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

Similar Threads

  1. Replies: 2
    Last Post: 03-05-2014, 12:16 PM
  2. Multiple entries to one record without adding new field?
    By Yamilet in forum Database Design
    Replies: 7
    Last Post: 06-01-2013, 04:22 PM
  3. Single record for multiple entries
    By MelHerndon in forum Database Design
    Replies: 3
    Last Post: 08-06-2012, 10:48 AM
  4. Replies: 12
    Last Post: 12-01-2011, 10:28 AM
  5. Multiple entries
    By danelliott in forum Access
    Replies: 3
    Last Post: 11-08-2010, 08:08 AM

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