Results 1 to 2 of 2
  1. #1
    lwflip is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jul 2015
    Posts
    2

    Table Structure for Simple Database


    Hello, I'm trying to create a simple database to track our Daily Production Summary. I've never setup a database before some I'm looking for some advice on how to structure the Database tables. I'm basically trying to translate the following table into a database:

    Date 4/7/2016
    Time Name Lot Good lbs Scrap lbs Comment
    12-1 Product A Lot 1 10,000 20 Startup Line
    1-2 Clean
    2-3 Product B Lot 2 15,000 50 Startup Line
    .
    .
    23-24 50,000 200

    I was thinking of having a Production Table with the key being the Date then having all of the fields in the table above listed in the Production Table. The issue with this is the Production Table would have an absurd number of fields. In the case above, there would have to be a Name, Lot, Good lbs, Scrap lbs and Comment field for each hour (24x5=120). It doesn't seem like good practice to have a single table hold all data like this.

    Could someone give me advice on how to structure this or point me in the right direction/towards some literature?

    Thanks,

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Since you have admittedly told us that you have
    never setup a database before
    , I recommend you watch and work through a few tutorials to get some feel for the concepts involved.

    Here are 3 videos that will help with concepts/overview of database and data structure.

    Intro to Database Daniel Soper

    The Relational Model

    Data Model and ERD

    Work through this tutorial to get familiar with the design process. You have to work through it --30-45 minutes, but you will learn, and what you learn can be used with any database.

    Also, for Access, it is better to not have spaces in field names. Use only alphanumeric characters. It will save you syntax errors and frustration. There are a number of reserved words in Access that require "special syntax" --better to avoid it in my view.

    Good luck.
    Last edited by orange; 04-07-2016 at 10:15 AM.

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

Similar Threads

  1. Replies: 4
    Last Post: 01-17-2016, 02:52 PM
  2. Replies: 2
    Last Post: 05-24-2015, 01:28 PM
  3. Replies: 4
    Last Post: 05-06-2015, 08:31 PM
  4. Replies: 6
    Last Post: 06-27-2011, 07:11 PM
  5. Simple Requery Structure - Continous Forms
    By JeffG3209 in forum Programming
    Replies: 8
    Last Post: 06-10-2011, 07:18 PM

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