Results 1 to 3 of 3
  1. #1
    crowegreg is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Posts
    398

    Table design

    I need to create a table which contains rates per mile. An example would be Rate A, B, etc. Within each rate, for each mile between 1 to 500, their will be an individual amount. Within a form, the user will have a list of records which contains distances. The user will select a rate, then the correct rate per mile will be retrieved based on the distance. Here's the idea:



    Rate A Rate B
    1 .50 .55
    2 .55 .58
    3 .59 .64
    4 .63 .65
    5 .70 .72


    On the form: user selects the Rate, I'll use B


    Distance Rate

    3 .64
    5 .72
    1 .55

    With the mamimum number of fields within a table 255, I'm having trouble coming up with the most efficent design.

  2. #2
    John_G is offline VIP
    Windows XP Access 2003
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    You need to look at using properly normalized data. Your table needs to contain only three fields:

    Rate Code (A, B, ...)
    Distance
    Rate Paid (.72, .55, ....)

    You could use DLookup to retrieve the values for any given Rate Code / Distance.

    John

  3. #3
    crowegreg is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Posts
    398
    That's what I couldn't put my head around. Thanks

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

Similar Threads

  1. Table Design
    By tyrobrio in forum Database Design
    Replies: 6
    Last Post: 10-12-2013, 08:45 AM
  2. Replies: 8
    Last Post: 03-24-2012, 11:03 AM
  3. please help to design a table
    By oas in forum Database Design
    Replies: 3
    Last Post: 02-11-2012, 08:54 AM
  4. Need some help on table design
    By stryk9 in forum Database Design
    Replies: 1
    Last Post: 03-07-2011, 06:35 AM
  5. 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

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