Results 1 to 5 of 5
  1. #1
    AzizSader is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    37

    Please help in this example

    Dear all
    In this example has two tables table personnel and projects, and you link between the two tables in a way ( ONE TO MANY )
    Can sometimes for more than an employee has to be the same project, for example,


    ( USER1 ) Has a project and can be (USER2)AND (USER4) they have the same project
    Is there a way to do I add the project to a number of staff together
    Attached Files Attached Files

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,633
    Can each person be associated with more than one project and each project can have many people? If yes, this is a many-to-many relationship. Need a junction table.

    tblUsersProjects
    UserID
    ProjectID
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    AzizSader is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    37
    Very Very Thank You My Dear Teacher
    Is it possible to modify the example My Dear Teacher

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,633
    Build table as described.

    Use form/subform arrangement for data entry/edit.

    Main form bound to project and subform bound to junction table with combobox to select employee.

    or

    Main form bound to employees and subform bound to junction table with combobox to select project.

    This is very basic Access functionality.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    AzizSader is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    37
    thank you my dear teacher

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

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