Results 1 to 6 of 6
  1. #1
    adams77 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2013
    Posts
    16

    Database Layout

    Hello,
    I am setting up my first Access database. I have worked with Access for several years but I have never set one up from scratch. I have attached the current layout of the table/fields.

    Unit Contacts Detail Dues
    UnitID (Primary Key) AutoNumber AutoNumber AutoNumber
    Unit UnitID (Foreign Key) UnitID (Foreign Key) UnitID (Foreign Key)
    Address1 ContactName JobClass Year
    Address2 Email BusinessType Date
    City Title ProbPeriod Increase
    State ContactPhone InitFee FT/PT
    Zip Phone ReinstFee JobClass
    CorpAddr1 Fax StartAppl Ded_Mo
    CorpAddr2 Interaction BillingType StableRate
    CorpCity Frequency WageBase
    CorpState DuesCalc Grade
    CorpZip Step
    CorpPhone COLA
    New/Merged ContractExpires
    Affiliated Scale
    BA Manager


    After looking at the current layout, my questions so far are:

    1. Can UnitID (Foreign Key) be used in each table?

    2. There are addresses that invoices are mailed to. Some of the addresses are located in the Unit table and others are associated with the contacts? Should I set up a separate table that would contain invoice addresses only? This would duplicate some of the information in the Unit table. Or would I add address information in the contact table? Or do I put all the addresses in one table?

    3. Within the Dues table there is a field WageBase. This field will increase each year based on the wage increase. Do I leave this field blank and set up an update query based on the old wage plus the wage increase would equal the new wage?

    Thank you for your help!

  2. #2
    adams77 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2013
    Posts
    16
    How do I attach a pdf file?

  3. #3
    Dal Jeanis is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2013
    Location
    Dallas TX
    Posts
    1,742
    1A. Each Table should have a unique Autokey field.

    1B. You can use a Foreign key in any table layout where it makes sense and provides useful information.

    1C. Your tables look like they haven't been well thought through, yet. (more later)

    2D. Addresses, emails, phone numbers, contacts etc. There are good arguments for putting all the addresses in one table. There are also good arguments for allowing the same address to be in two different tables. The main way to distinguish is usage. How often do these addresses change? Will you often have to update them in two different places? Liewise, how many email addresses can a person have? Phone Numbers? What happens when they change? And is "Contact" a record of the last time you contacted them? If so, separate table, please.

    3E. Wagebase. You are much better off setting up a separate table for these wage items, where each new wage record is added with a date begin/date end. If you start by assuming that you need to keep historical data on wages etc, then your table design will be much more normalized, more maintainable, and less likely to get screwed up by banging up against real life.

  4. #4
    adams77 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2013
    Posts
    16
    Thank you for your quick reply!

    1C. What should I be asking myself to when designing the tables?

  5. #5
    Dal Jeanis is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2013
    Location
    Dallas TX
    Posts
    1,742

  6. #6
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Also, be aware of reserved words. "Year" & "Date" are two examples.
    See "Problem names and reserved words in Access"
    http://allenbrowne.com/AppIssueBadWord.html


    Only use letters, numbers and possibly the underscore in object names. NO spaces,punctuation or special characters.

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

Similar Threads

  1. Chemical Database Layout.
    By dlab85 in forum Database Design
    Replies: 15
    Last Post: 03-08-2013, 08:37 AM
  2. Change layout on access 2010 contact database.
    By trumpetman in forum Access
    Replies: 0
    Last Post: 06-18-2012, 05:02 AM
  3. Replies: 1
    Last Post: 03-04-2012, 03:49 PM
  4. Database Design and Layout
    By rhys.downard in forum Database Design
    Replies: 1
    Last Post: 02-29-2012, 09:49 AM
  5. Database layout issues
    By jbessling in forum Access
    Replies: 3
    Last Post: 12-19-2011, 10:56 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