Results 1 to 2 of 2
  1. #1
    JustJeff is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2017
    Posts
    1

    Normalizing Data - Use Steps or Create Unique Values

    So I have a grid that prices by Width and Height. It's a x/y coordinate for humans to find manually from measurements. I am trying to determine the proper way of normalizing the data.


    My unit of measure involves the eighth of an inch or "0.125", no metrics are involved.
    I only have about 200 "grids" that I will be normalizing, however, there are often quarterly updates on each "grid".I would like to structure things in a way that makes updating a breeze.
    Columns are always widths, rows are always lengths.

    While thinking this through, I ran into two choices:

    1) Using a query in "steps", where if a width is larger than another, on to the value from a larger width. I have never done this, but I believe it can be done.
    Example: 36.125 is priced by Column F as it is greater than 36.
    This seems logical as it saves me the time from normalizing 200 grids.

    2) Modify the data to incorporate the eighths.
    Add 0.125 to each row starting with 15 all the way to 86 leaving me with 569 rows.
    Add 0.125 to each column starting with 12 all the way to 96 leaving me with 673 columns.
    This would result in over 382K unique values for each "grid".

    Our measurements are placed often priced against multiple grids to find the best option. We average about 30 measurements each time we price.
    I have added an image from excel to give you a visual on this, hopefully this helps.
    Click image for larger version. 

Name:	ExampleGrid.PNG 
Views:	10 
Size:	24.1 KB 
ID:	26959

    On a side note:
    I am planning on using this with an access web database (which I have never done), and will have multiple user devices (if that matters).

    Thank you for taking the time to read this. We've been using excel with a local file, but I think this is the best way to keep our pricing from getting distributed to our competition.

  2. #2
    ssanfu is offline Master of Nothing
    Windows XP Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Well, a table can have a lifetime maximum of 255 fields, so 673 fields (columns) will not work.

    A normalized table would be something like

    tbl Measurements
    -----------------
    MeasurementID_PK - Autonumber
    mLength - Double
    mWidth - Double ("Width" is a reserved word, so added prefix "m")
    mResult - Double ("Result" is a reserved word, so added prefix "m")

    So you would look up (use a query) where mWidth = 36.125, mLength = 61.500, mResult = 236

    Code:
    <some code>
    mW = 36.125
    mL = 61.500
    strSQL = "SELECT mResult FROM tbl Measurements WHERE mWidth = " & mW & " and mLength = " & mL & ";"
    Currentdb.Openrecordset(strSQL)
    <Rest of code>
    Not sure what your object names should be; "Length" of what? "Width" of what? "Results"... is "Cost"??


    Just remember: records are cheap, fields are expensive. Write a UDF to get the "Result" or DLookup() (bleah)...

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

Similar Threads

  1. Dup data/Unique Values
    By spyldbrat in forum Access
    Replies: 10
    Last Post: 10-28-2016, 02:51 PM
  2. Replies: 11
    Last Post: 08-16-2015, 06:48 AM
  3. Trouble normalizing data from excel to Access
    By NewUser2Database in forum Database Design
    Replies: 4
    Last Post: 10-20-2013, 02:27 PM
  4. Normalizing Data - Just help me talk it through
    By hrenee in forum Database Design
    Replies: 15
    Last Post: 10-18-2013, 04:47 PM
  5. Normalizing data
    By snowboarder234 in forum Forms
    Replies: 1
    Last Post: 10-24-2012, 05:02 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