Results 1 to 8 of 8
  1. #1
    masood is offline Novice
    Windows XP Access 2007
    Join Date
    Dec 2011
    Posts
    5

    Table Design for the following data sheet

    Hello access users.. Help me in designing a table in which the rows should consist of six parameters(neglect their names) and each field should contain a machine number(we have 5 machines).. and all these data should be entered on a daily basis....



    A sample data sheet has been attached for your reference... Kindly help...

  2. #2
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    You would need 3 tables in a relational database to capture the data you show in the spreadsheet

    tblMachines (each machine would be a record in this table)
    -pkMachineID primary key, autonumber
    -txtMachineName

    tblParameters (each parameter would be a record in this table)
    -pkParameterID primary key, autonumber
    -txtParameterName

    Now a table to relate the parameters applicable to each machine

    tblMachineParameters
    -pkMachParaID primary key, autonumber
    -fkMachineID foreign key to tblMachines
    -fkParameterID foreign key to tblParameter
    -MachineParameterValue


    Since you say you have 5 machines each with 6 parameters, you would have 30 records in tblMachineParameters.

  3. #3
    masood is offline Novice
    Windows XP Access 2007
    Join Date
    Dec 2011
    Posts
    5

    Unhappy Thanks...But....

    Thanks to JZWP11 from my heart for help ... But the table design given by you is sufficient for one day only... what if I want to use the same table daily.>?? How can I relate the date with the parameter and the primary key....???

    Please help..... I am very confused.....

  4. #4
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    It sounds like you are doing daily inspections, so a table to hold that:


    tblInspections
    -pkInspectID primary key, autonumber
    -dteInspect (date)
    other fields related to the inspection

    We need to remove the field -MachineParameterValue from tblMachineParameters, so that table is now as follows:

    tblMachineParameters
    -pkMachParaID primary key, autonumber
    -fkMachineID foreign key to tblMachines
    -fkParameterID foreign key to tblParameter


    During an inspection you will gather results for many machine/parameters (one-to-many relationship).


    tblInspectionResults
    -pkInspectResultID primary key, autonumber
    -fkInspectID foreign key to tblInspections
    -fkMachParaID foreign key to tblMachineParameters
    -InspectMachineParameterValue (the actual value for the machine/parameter for the particular inspection)

  5. #5
    masood is offline Novice
    Windows XP Access 2007
    Join Date
    Dec 2011
    Posts
    5

    Still......

    Quote Originally Posted by jzwp11 View Post
    It sounds like you are doing daily inspections, so a table to hold that:


    tblInspections
    -pkInspectID primary key, autonumber
    -dteInspect (date)
    other fields related to the inspection

    We need to remove the field -MachineParameterValue from tblMachineParameters, so that table is now as follows:

    tblMachineParameters
    -pkMachParaID primary key, autonumber
    -fkMachineID foreign key to tblMachines
    -fkParameterID foreign key to tblParameter


    During an inspection you will gather results for many machine/parameters (one-to-many relationship).


    tblInspectionResults
    -pkInspectResultID primary key, autonumber
    -fkInspectID foreign key to tblInspections
    -fkMachParaID foreign key to tblMachineParameters
    -InspectMachineParameterValue (the actual value for the machine/parameter for the particular inspection)
    Thanks once again...... Here i am attaching an excel workbook which contains both the formats of the tables and the report. Please have a look and suggest me whether should I select Excel or Access to create these....

  6. #6
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    I am partial to Access so my opinion is biased. If you have a large amount of data to capture and store, a database is usually the preferred method rather than a spreadsheet. However, learning how to structure data correctly in a relational database is a skill that takes time to learn and develop. Then you also have to learn how to use Access or any other relational database software. So one might say that the learning curve with a relational database program like Access is steeper & longer than the one for Excel. If you are willing to invest that time then I would recommend Access, if not then you will be better off with Excel.

  7. #7
    masood is offline Novice
    Windows XP Access 2007
    Join Date
    Dec 2011
    Posts
    5

    Smile Thank You....

    Quote Originally Posted by jzwp11 View Post
    I am partial to Access so my opinion is biased. If you have a large amount of data to capture and store, a database is usually the preferred method rather than a spreadsheet. However, learning how to structure data correctly in a relational database is a skill that takes time to learn and develop. Then you also have to learn how to use Access or any other relational database software. So one might say that the learning curve with a relational database program like Access is steeper & longer than the one for Excel. If you are willing to invest that time then I would recommend Access, if not then you will be better off with Excel.
    Thank you jzwp11 for your valuable suggestion........

  8. #8
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    You're welcome; good luck with whichever option you decide to go.

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

Similar Threads

  1. Replies: 4
    Last Post: 10-07-2010, 04:45 PM
  2. Tabular Data Design
    By Ramsi2001 in forum Forms
    Replies: 53
    Last Post: 08-25-2010, 06:38 PM
  3. Data sheet sub-form
    By cb19366 in forum Forms
    Replies: 1
    Last Post: 03-31-2010, 01:05 AM
  4. table design: one big table vs. multiple small tables
    By lstairs in forum Database Design
    Replies: 3
    Last Post: 12-31-2009, 08:46 AM
  5. Replies: 2
    Last Post: 07-15-2009, 04: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