Results 1 to 7 of 7
  1. #1
    drkepyon is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Aug 2014
    Posts
    2

    DB Structure

    Hi there, Im new to this access world, and I'm trying to create a DB to track rental incomes.

    We have different locations, and some of the customers are established in many (if not all) of those locations. Price per sqft change from a location to another and may vary from one month to the next.

    Here's what I've thought so far:

    One table with my locations, Rented space, avaliable space, total space and general comments
    One table with ID, Customer Name, Rented Space,
    ?????????????????????????????????????????????????? ???????????????????????????
    ?????????????????????????????????????????????????? ???????????????????????????
    ?????????????????????????????????????????????????? ???????????????????????????
    Querys
    Reports
    Graphics

    The thing is I cant find a Way to put together all the Monthly-Changing Price/Custumer information. 40 different locations with 10 to 20 different customers per locations...........



    Any Examples on how to solve this?

    Thanks

    D.

  2. #2
    burrina's Avatar
    burrina is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    See this link for examples: http://www.databaseanswers.org/data_models/

    HTH

  3. #3
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Also check out http://www.rogersaccesslibrary.com/forum/forum46.html
    for tutorials on dB design.

    I usually start with pencil & paper (or a big whiteboard) to start designing. It is easier to make changes in the design and see the relationships.
    Spend the time on designing rather than just start creating tables.......

  4. #4
    drkepyon is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Aug 2014
    Posts
    2
    Thanks a lot! Gonna dig into it

  5. #5
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    I believe the most commonly missed design concept by novices is the transaction table. There is a table for customer (or student or tenant or...) and there is a table for product (or property or class or....) and these are both relatively static stand alone tables.... It is the transaction table that brings the 2 together: Customer X, Property 1, Start Date, End Date

    Microsoft anticipates this design by offering the LookUp field type whereby the transaction table's Customer field would be a look up of the Customer table and the Property field is a look up of the Property table.....whenever I post this other developers always opine that using lookup field types should be avoided - but I use them all the time and find them quite easy to deal with - - and they are particularly helpful for novices....

  6. #6
    burrina's Avatar
    burrina is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    I most definitely disagree. http://access.mvps.org/access/lookupfields.htm
    To each his own!

  7. #7
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Unless the dB is for personal use only, something like a CD/DVD collection/address book, I would also disagree. For a novice/intermediate programmer, look up fields and MVFs cause more problems than they solve. There are tons of questions on why they can't find a record. The look up field hides the value that should be used to search - they try to search on name (text) instead of the PK (Long). That is, if they understand relationships.

    The only time I *might* see a use for look up fields is in datasheet view. Since I never use datasheet view, I don't use look up fields.

    Another problem that I see with look up fields (and MVFs) is when the dB becomes so useful that the decision is made to convert to SQL Express/SQL Server/MySQL/etc. The use of look up fields/MVFs requires a re-write of the FE. Again, this would be mostly for business use.


    My $0.03 ... (inflation)

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

Similar Threads

  1. Relationships & Structure
    By steve.mullen in forum Database Design
    Replies: 3
    Last Post: 03-06-2012, 12:29 PM
  2. How to structure my db?
    By JeredG in forum Access
    Replies: 5
    Last Post: 11-14-2011, 06:22 PM
  3. Hierachy Structure
    By anandram in forum Database Design
    Replies: 11
    Last Post: 05-02-2011, 12:20 PM
  4. New Guy Structure questions
    By cgjames in forum Database Design
    Replies: 11
    Last Post: 01-19-2011, 07:16 AM
  5. SQL statment structure
    By oss_ma in forum Programming
    Replies: 1
    Last Post: 05-13-2007, 02: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