Results 1 to 6 of 6
  1. #1
    CoachBarker is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    17

    Table Setup and Relationships

    I am putting together an application for a Self Storage business for a friend of mine and could use some advice. It has been a few years since I have built an application using accesss, I am a .net programmer and the db is usually always built for me. The business has 107 storage units. The application is built around the storage units not the customer. So I need to track based on the storage unit number: rent payments, payment dates, comments from the customer or owner(can be one (unit) to many (customer/owner)eg: paying late, problems, Questions, etc), start date and end date of rental. Other than a customers table, what tables would I need for the storage units and their relationships?



    Thanks
    Coach Barker

  2. #2
    Join Date
    Jun 2010
    Location
    Belgium
    Posts
    1,043
    Hi,

    can't be sure without a thourough analysis, but it looks like you'll certainly need:

    tblCompanies: to store the customers and eventually providers
    tblContacts: if one company can have many contacts
    tblUnits: data about the storage units
    tblContracts: which company rents which storage units from date till...
    tblContractsComments: per contract the comments, questions, ...
    tblTarifs: if used, rental fees per unit or m3 or whatever; valid from .... valid till
    tblContractPayments


    there will be probably some more tables depending on your analysis...

    succes
    NG

  3. #3
    CoachBarker is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    17
    Something along these lines?

    tblCustomers
    CustomerID
    FirstName
    MiddleInitial
    LastName
    Address
    City
    State
    ZipCode
    HomePhoneNumber
    CellPhoneNumber
    WorkPhoneNumber
    AltPhoneNumber
    Email
    Active

    tblStorageUnits
    StorageShedID
    StorageUnitNumber
    BuildingNumber
    StorageUnitSize
    Available

    tblRentals
    RentalID
    StorageShedID
    CustomerID
    BeginningDate
    EndingDate
    PaymentDate
    PaymentAmount
    Comments

    I realize all contact info for customer should be in a separate table, but I will worry about that later.

  4. #4
    Join Date
    Jun 2010
    Location
    Belgium
    Posts
    1,043
    Looks like a good start, but be carefull, if more then 1 payment is due for a rental (for instance 1 payment each month, they should be in a separate table

    greetings
    NG

  5. #5
    CoachBarker is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    17
    why? If each payment is recorded as a new record with RentalID as the primary key, then shouldn't I be able to have multiple entries for each unit?

  6. #6
    Join Date
    Jun 2010
    Location
    Belgium
    Posts
    1,043
    Let's say the customer rents a storage from January till August and pays each month. For each payment you'll be wanting to enter the PaymentDate and PaymentAmount, but you don't want to repeat each time:

    StorageShedID
    CustomerID
    BeginningDate
    EndingDate
    Comments

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

Similar Threads

  1. Table Relationships
    By seanp in forum Access
    Replies: 2
    Last Post: 04-15-2010, 07:12 AM
  2. Table Relationships?
    By Meld51 in forum Access
    Replies: 3
    Last Post: 03-01-2010, 08:34 AM
  3. Table Relationships
    By jp2access in forum Database Design
    Replies: 3
    Last Post: 06-19-2009, 10:20 AM
  4. Newbie Table Setup
    By debl5 in forum Access
    Replies: 3
    Last Post: 05-15-2009, 07:46 AM
  5. Please help with table setup
    By newhelpplease in forum Access
    Replies: 0
    Last Post: 10-14-2007, 01:15 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