Forum Discussion

AllisonWatson's avatar
AllisonWatson
Qrew Member
2 years ago

Choose Users for projects

Good morning.  I have an Employees Table, and a projects table.  I set up a relationship where where 1 employee has many projects.  But I need the project to have 2 drop downs - one where I choose a Sales Rep, and one where I choose a Project Manager, but both are based on the Employees Table.  On the form for Projects, I want to be able to choose a sales rep from a drop down list, and have it display the Name & Phone number for the Sales Rep, and then choose the Project Manger and have it display the same info.

How can I make this work?   TIA



------------------------------
Allison Watson
------------------------------
  • Hey Allison!

    You can accomplish this by duplicating your relationship from your parent table Employees to your child table Projects. After this you would do two things...

    1. Change the reference field of your 1st relationship to be titled "Related Sales Rep", and change the reference field of your 2nd relationship to be titled "Related Project Manager".
    2. For your drop down lists I would recommend creating a report on your parent table for each. In these reports, filter the first to only show employees in the "Sales Rep" role, and the second to only show employees in the "Project Manager" role. You can then base your record pickers on the reports you just created.

    Hope this helps you out!



    ------------------------------
    George Hambel
    Project Manager
    Synctivate Inc
    ------------------------------

    • AllisonWatson's avatar
      AllisonWatson
      Qrew Member

      That helps a ton!  I had no idea you could duplicate relationships.  Thanks!



      ------------------------------
      Allison Watson
      ------------------------------
      • GeorgeHambel's avatar
        GeorgeHambel
        Qrew Trainee

        Happy to help! 

        Duplicating relationships is not always a best practice and other options should be considered prior to doing so, but in your scenario you should be just fine.



        ------------------------------
        George Hambel
        Project Manager
        Synctivate Inc
        ------------------------------
  • Allison,

    As long as you only have Sales Reps and Project Managers, I would do it the way George said.

    However what if you have Auditors, Marketing Lead, Customer Liaison and Engineering Rep?

    Then I would move to this:

    This lets you have an unlimited number of people all defined by the Team Roles. 

    George's method makes a lot of reporting easier, you do not have to click Add Project Team and so on.  However a big team really needs a different architecture.



    ------------------------------
    Don Larson
    ------------------------------