Results 1 to 6 of 6
  1. #1
    ryainad is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2012
    Posts
    8

    Red face Small confuse of ERDiagram connection

    Hi, everybody.

    I've started to draw ERDiagram.

    Click image for larger version. 

Name:	?????? 1.PNG 
Views:	7 
Size:	27.6 KB 
ID:	6984

    Now I'm confused: What is the defference if I connect country to address and city to country. (interchange city and country)

    Click image for larger version. 

Name:	?????? 2.PNG 
Views:	9 
Size:	32.4 KB 
ID:	6985

    What I need to do is to create list of values for country and city, where I can choose country and than I will have list of cities of that country.



    It seems easy ...

  2. #2
    recyan's Avatar
    recyan is offline Expert
    Windows 2K Access 2000
    Join Date
    Dec 2011
    Posts
    662
    Till someone comes along :
    Can an employee have more than 1 address ?
    What does Address_Type indicate ?
    How is the Employee & his / her address related in the ERD that you have shown ?
    The City_ID & not the Country_ID in the Address record, to me, appears right.

    Thanks

  3. #3
    ryainad is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2012
    Posts
    8

    Reply

    Quote Originally Posted by recyan View Post
    Till someone comes along :
    Can an employee have more than 1 address ?
    What does Address_Type indicate ?
    We have to record both of addresses, because we have situations when somebody has permanent and temporary address (it means I work in one city but all my family in other city or address), secondly we have situations when few people from the same family work in a company. So address_type has 2 values: permanent and temporary.

    Quote Originally Posted by recyan View Post
    How is the Employee & his / her address related in the ERD that you have shown ?
    Employee & address related through the address_type. I made it after normalisation because it was many-to-many connection

    Quote Originally Posted by recyan View Post
    The City_ID & not the Country_ID in the Address record, to me, appears right.
    When I tried to fill tables from Country table it works fine, but I have a confusion with filling address from employee table.
    I made it as a LOV and I got full values of cities.
    Does anybody know some links where I can find how to make forms with list of related values?

  4. #4
    recyan's Avatar
    recyan is offline Expert
    Windows 2K Access 2000
    Join Date
    Dec 2011
    Posts
    662
    1) If I have understood correctly, if 2 Employees have the same address, you are storing the Address as common to both. I personally would prefer to store each Employees address seperately against that particular Employee.
    2) Still unable to see the relationship between an Employee & his Address. Address_Type, if I have understood correctly has only values of Temporary & Permanent.
    3) The way I see it :

    tblEmployee
    EmployeeID - PK
    ......

    tblAddresses
    AddressID - PK
    Address
    City_ID - FK
    AddressType_ID - FK
    Employee_ID - FK

    Thanks

  5. #5
    ryainad is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2012
    Posts
    8
    Thank you, recyan.

    I've changed my diagram.

  6. #6
    recyan's Avatar
    recyan is offline Expert
    Windows 2K Access 2000
    Join Date
    Dec 2011
    Posts
    662
    Don't know, if my thoughts were helpful or not, but all the same glad that you are moving ahead.
    In case, required, you may post your latest ERD & some-one else might be able to give more inputs.

    Thanks

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

Similar Threads

  1. Help with small form calculations
    By Nokia N93 in forum Access
    Replies: 3
    Last Post: 12-06-2011, 06:29 AM
  2. Field Is Too Small Issue
    By netchie in forum Forms
    Replies: 1
    Last Post: 09-21-2011, 12:45 PM
  3. small help needed
    By arthasdk in forum Access
    Replies: 3
    Last Post: 01-07-2011, 12:08 AM
  4. Small Business Question
    By P5C768 in forum Access
    Replies: 1
    Last Post: 09-28-2009, 08:27 AM
  5. small if statement help please
    By taylorosso in forum Programming
    Replies: 16
    Last Post: 09-23-2009, 11:23 AM

Tags for this Thread

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