Results 1 to 4 of 4
  1. #1
    PeterPeterson is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Sep 2012
    Posts
    7

    Database Design - Physical / Postal Address Issue


    I am developing an access database to manage students attending training.
    In the table tblStudents, I need to capture the students:
    • Physical Address (i.e. where they live)
      • address (text);
      • suburb (lookup to suburbID in tblSuburb); and

    • Postal Address (if different)
      • postal address (text)
      • postal suburb (lookup to suburbID in tblSuburb)

    NOTE: other relevent info e.g. name etc is also collected.

    I have another table, tblSuburb which includes:
    • suburbID (auto)
    • suburb (text)
    • state (text)
    • post code (text)


    I have not normalised the database to have "state" in a seperate table as 99% of students will come from one state.

    Some students live in one suburb and their postal address (e.g. PO Box 123) is in a different suburb.

    I have established a relationship between:
    tblSuburb -> suburbID (one) to tblStudents -> suburb (many);and
    tblSuburb -> suburbID (one) to tblStudents -> postalSuburb (many)

    Data in the tblStudents looks fine whereby I have 5 students, one of which has a different physical address & suburb to their postal address & suburb.

    When I run a query on tblStudents and tblSuburbs showing:
    • firstName;
    • surname;
    • address;
    • suburb;
    • state;
    • postcode;

    only 4 student records show - the student with different suburb for their physical versus postal address does not appear.

    I would be most grateful if someone could guide me towards where my error is.

    Thanking you
    Peter

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    It may just be me, but you seem to be focused on suburb. Perhaps you could give us a couple of examples of the issue you are having with real data.

    In systems I have worked with where several addresses and address types were involved, we used Address and AddressType tables. I don't recall ever using "suburb".

    AddressType included things such as

    -Mailing
    -Shipping
    -Receiving
    -PayTo
    -PhysicalLocation

    Here is info on USPS Addressing standards
    http://pe.usps.gov/cpim/ftp/pubs/pub28/pub28.pdf

    As for your query, it would be helpful if you would post the SQL for the query.

  3. #3
    PeterPeterson is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Sep 2012
    Posts
    7
    Orange,
    Thank you for replying and sorry it has taken me so long respond. i have been away from my computer working on the road.
    My issue is not with "suburb", that was just the example of where I was having truble.
    I believe I have overcome the issue caused by my creating a realtionship with full integrity where both tables where equal.
    I have changed this to include all records from tblStudents and only those records from tblSuburbs where the joined fields are equal.
    Once again thanks for replying.
    Regards
    Peter

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    You are welcome - good luck with your project

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

Similar Threads

  1. Replies: 3
    Last Post: 04-10-2012, 04:42 PM
  2. Replies: 1
    Last Post: 03-06-2011, 06:21 PM
  3. Help with Postal-System Database
    By AccessBoy in forum Access
    Replies: 19
    Last Post: 04-07-2010, 07:21 AM
  4. Input Mask for an IP Address and Mack Address
    By baksg1995 in forum Access
    Replies: 18
    Last Post: 06-23-2009, 12:33 PM
  5. Database Design Issue
    By joekiteire in forum Database Design
    Replies: 6
    Last Post: 02-26-2009, 04:53 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