Results 1 to 11 of 11
  1. #1
    Shamli is offline Competent Performer
    Windows 7 64bit Access 2013 64bit
    Join Date
    Jul 2018
    Location
    California
    Posts
    142

    Create a form from three tables

    Hi
    I have three tables.
    1. Employee
    2. Projects
    3. Task

    I have to create a form with the employee list and when a employee is selected,
    one tab should display the employee information (Logid, contact details etc),
    other tab should display the list of projects . I am planning here a drop down . I have to allot a project to the employee selected from the list.

    Other tab should display the list of tasks. And the same process to be done. Like the employee selected to be allotted the task.


    And when all the data is entered. it should be saved to another new table.



    I am new to access. Can someone help me in starting with it.

    Thank you!

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    these would be subtables.
    1 single record form for Employee
    1 subform for tProjects that shows the 1 employee a list of projects he is working
    1 subform in subProjects to show what task in the 1 project for the 1 employee.

    you could use the listbox to add tasks to the project. (run append query when user dbl-clicks the listbox)

  3. #3
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Welcome to the site. FYI, I deleted your duplicate thread; please don't post the same question multiple times.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  4. #4
    Shamli is offline Competent Performer
    Windows 7 64bit Access 2013 64bit
    Join Date
    Jul 2018
    Location
    California
    Posts
    142
    Duplicate.
    Last edited by Shamli; 07-18-2018 at 03:51 PM.

  5. #5
    Shamli is offline Competent Performer
    Windows 7 64bit Access 2013 64bit
    Join Date
    Jul 2018
    Location
    California
    Posts
    142
    Thanks for replying.
    I have a question here.
    Once the employee is selected. The project sub form should display all the projects (Projects where the employee is working as well as all the other projects too). I am planning here a check box.
    The goal is to see what projects he is working as well as the admin can add projects under his name.

    To explain this in elaborate.
    Ultimate purpose is for timesheet management.
    Current Problem:
    Employees have access to all the projects and tasks in the timesheet form. SO many are filling the timesheet for the projects they are not working.
    To be Done:
    So I have the following tables. Employee table, Project table(This has the list of all the projects) and the task table. (There is no common field between all the three tables)
    I have created a table (Assign Employee to Project) which links the employee and project table.
    Now when the admin chooses the employee, he should be able to see the list of projects (Projects where the employee is working as well as all the other projects too).
    So in future the admin can add an employee to a new project and save that into the "Assign Employee to Project" table.

    I hope I explained my problem here.

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Conventional form design options:

    1. Single form bound to junction table "AssignEmployees" with comboboxes to select employee and project

    2. Main form bound to Employees, subform bound to AssignEmployees with a combobox to select project

    3. Main form bound to Projects, subform bound to AssignEmployees with a combobox to select employee
    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.

  7. #7
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    A technique that may help when assigning projects/tasks:

    http://www.baldyweb.com/MultiselectAppend.htm
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  8. #8
    Shamli is offline Competent Performer
    Windows 7 64bit Access 2013 64bit
    Join Date
    Jul 2018
    Location
    California
    Posts
    142
    Thank you so much for your reply. I will try this one.

  9. #9
    Shamli is offline Competent Performer
    Windows 7 64bit Access 2013 64bit
    Join Date
    Jul 2018
    Location
    California
    Posts
    142
    Thank you for the sample. I will try them and see.

    Quote Originally Posted by pbaldy View Post
    A technique that may help when assigning projects/tasks:

    http://www.baldyweb.com/MultiselectAppend.htm

  10. #10
    Shamli is offline Competent Performer
    Windows 7 64bit Access 2013 64bit
    Join Date
    Jul 2018
    Location
    California
    Posts
    142
    Thank you so much. It worked.
    Quote Originally Posted by pbaldy View Post
    A technique that may help when assigning projects/tasks:

    http://www.baldyweb.com/MultiselectAppend.htm

  11. #11
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Happy to help!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 6
    Last Post: 12-27-2017, 07:18 AM
  2. Replies: 1
    Last Post: 08-29-2016, 08:04 PM
  3. Create a form from 2 tables
    By paologucci in forum Access
    Replies: 1
    Last Post: 03-21-2016, 06:18 AM
  4. Multiple tables to create one Form??
    By Gravity101 in forum Forms
    Replies: 2
    Last Post: 06-02-2011, 06:37 AM
  5. Create a form using 3 tables
    By Mrdudecool in forum Forms
    Replies: 1
    Last Post: 01-20-2011, 01:43 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