Results 1 to 4 of 4
  1. #1
    jefflj is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    May 2015
    Posts
    3

    Total Access Newbie: Designing database tables from spreadsheet

    I have an excel spreadsheet that has grown to be unwieldy to view relevant data at once and was hoping that moving it to an access dB would help manage the view of the data. I've created a smaller version of the spreadsheet that represents the issue and was hoping for help in designing the dB for this project. If this is too simple, please forgive me.



    The problem (in the example) is this: I have a table with column headers containing Month names and a row headers containing numbers between 1 and 31 (corresponding to the numeral of the Day). The purpose of the table is to show which month has the corresponding day in it. The proposed database will contain the data in A3-J10. Data comes to me in the format of the "New Record' info in Row 17. Occasionally I will get new "Months" to add, as in column L.

    The users of the database want to run 2 queries: 1) enter a "Month" and see which "Days" are contained within it. 2) enter a "Day" and see which "Months" contain it.

    Click image for larger version. 

Name:	OrigTable.png 
Views:	20 
Size:	19.8 KB 
ID:	20870

    As you can see there is some additional data associated with each of the column and row headers, but I've pretty much got that figured out:

    Click image for larger version. 

Name:	Tables.png 
Views:	20 
Size:	28.6 KB 
ID:	20872

    I've created tables to contain the additional data, Table 1 for the Day and Description, and Table 2 for the Month and Season.

    My problem comes in not knowing how to set up the table for the main part of the data, the "y"s in the spreadsheet. I know I'm missing some basic piece if knowledge , maybe a lot of basic knowledge. Can someone offer help or pointers?

  2. #2
    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
    A month named Septober? What calendar are you using?

    A db that requires regular table modification to add new fields is not normalized.

    Why do you need this in a table? Why and where from would you get records that say a day is within certain months? Doesn't everyone have memorized which months hath 31, 30, and 27/sometimes 28 days and which season a month falls in?

    When building relational database, forget everything you know about spreadsheets.

    Maybe this tutorial site will help http://www.rogersaccesslibrary.com/
    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
    jefflj is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    May 2015
    Posts
    3
    Yes that data is ridiculous, but it describes my business problem exactly. It was a simple attempt at sanitizing my data.

    So my issue appears to be with designing the Entity Relationship Diagram so that I can build the dB from it. I'll see how far I can get with the tutorials. Thanks for the pointers.

  4. #4
    jefflj is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    May 2015
    Posts
    3
    Thanks for the pointer. I've read the tutorials, very good, BTW, thanks and Normalization is the key.
    I've come up with an ERD that I think represents the data and is in 3rd Normal form:

    Click image for larger version. 

Name:	ERD1.png 
Views:	14 
Size:	5.0 KB 
ID:	20904




    Please let me know if I'm on the right track here.

    Thanks for your help.

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

Similar Threads

  1. Replies: 5
    Last Post: 05-28-2015, 04:24 AM
  2. Replies: 5
    Last Post: 09-12-2014, 10:39 AM
  3. Replies: 7
    Last Post: 09-11-2014, 11:48 AM
  4. Replies: 1
    Last Post: 02-02-2012, 08:55 AM
  5. import an excell spreadsheet in an access database
    By lmichaud in forum Import/Export Data
    Replies: 0
    Last Post: 11-03-2006, 08:29 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