Results 1 to 4 of 4
  1. #1
    wrkadri is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Dec 2012
    Posts
    29

    Links and Relationships Help !

    Hi all,


    I work with an NGO and developing an access database.
    I am working on a database that has the following tables:
    (Personal Information, House Information, Livelihood and Social Information, Shelter Information, Water Information, Sanitation and Hygiene Information, Other Needs, PUAMI Projects, PUAMI Activities). I have managed to link all above tables in 1 to 1 relationships as each beneficiary (Personal Information) can hold one and only one information from other tables. What I want is the following:
    I want to work on these tables:

    Projects:
    ProjectID AutoNumber
    ProjectCode Text
    ProjectTitle Text
    ProjectDonor Text
    ProjectStartDate Date/Time
    ProjectEndDate Date/Time
    ProjectStatus Text











    Activities:
    ActivityID AutoNumber
    ProjectID Number
    ActivityCode Text
    ActivityName Text
    ActivityBaseOfOperation Text









    The above two tables are linked with one to many relationships where one project can have many activities. (Note: same project can have the same activities but with different ActivityBaseOfOperation)

    Check Relationship Image:
    Click image for larger version. 

Name:	Relationship.png 
Views:	9 
Size:	30.9 KB 
ID:	11451

    Check Form Image:
    Click image for larger version. 

Name:	Projects and Activities.png 
Views:	7 
Size:	193.1 KB 
ID:	11450

    What I want to do is to link certain items to activities where each item is linked to a certain activity in the activity table based on the ProjectCode and ActivityBaseOfOperation.
    (Note: each activity can have many items).
    For example table Sealing Off:
    SOID AutoNumber
    NumberOfSO Number
    SODistributionDate Date/Time





    I want to link this table to Activities and have a link from this item to a certain activity according to ActivityBaseOfOperation (South, North).

    I will show you the activities that I have and then you can have a clear idea of what I'm asking for. Check Image Below:
    Click image for larger version. 

Name:	Activities.png 
Views:	9 
Size:	48.7 KB 
ID:	11452
    As you can see I can have RE linked to ProjectID 3 but with different ActivityBaseOfOperation.

    Thank you in advance.

  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,726
    There is a tutorial at this site that will lead you from business facts to tables, normalization and a data model of tables and relationships to support your business. Work through the sample, then use the procedure to set up your database.
    http://www.rogersaccesslibrary.com/T...lationship.zip

    good luck

  3. #3
    wrkadri is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Dec 2012
    Posts
    29
    Thank you for the relationship tutorial but what I need is to link each record in SO table into another one in Activities. For example one person can benefit from many sealing off distributions in which each distribution is linked to a certain activity. I don't want to add a new activity whenever I have a single distribution.

  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,726
    You are talking "jargon" to most of the readers. If you really want assistance, then I suggest you help the reader understand your situation. What exactly are your business rules/facts? What do the terms mean in "plain English"?

    I don't think I have ever met a "sealing off distribution". How would I describe such a thing to someone just learning Access?

    If you didn't really care for the tutorial; or didn't understand it, then do it again using your own data.

    but what I need is to link each record in SO table into another one in Activities.
    - I think you may have misunderstood the tutorial.

    Whatever next step you choose to follow, just remember that your underlying database structure - tables and relationships - is the foundation of your database application. The better the foundation matches your business facts, the longer lived and less maintenance and surprises (work arounds) as you proceed.

    Good luck with your project.

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

Similar Threads

  1. Showing Database Links
    By cbh35711 in forum Access
    Replies: 3
    Last Post: 03-23-2012, 11:45 AM
  2. Refresh links on start up
    By snoopy2003 in forum Database Design
    Replies: 3
    Last Post: 03-19-2011, 04:13 AM
  3. Clicking links in webpages
    By dssrun in forum Programming
    Replies: 5
    Last Post: 01-16-2011, 09:04 PM
  4. Testing links
    By piflechien73 in forum Forms
    Replies: 0
    Last Post: 06-01-2009, 05:09 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