AndrewFry
5 years agoQrew Assistant Captain
List all Contacts being used in form
I am trying to have a drop down in the main form that lists all contacts currently in use in the form.
My relationships are as follows:
Clients < Work Orders
Clients < Contacts
Contacts < Work Orders (x9)
I have a Client drop down in the Work Order form.
I have 9 relationships established between the Contacts table and Work Orders table due to the various types of contacts, i,e supervisor, engineer, specialist, etc.
I have 9 contact drop downs in the Work Order form, one for each contact type. They only show contacts that have a matching type. There is a drop down for Supervisor, one for Engineer, one for Specialist, etc etc etc.
The 9 contact drop downs are conditionally based upon the client selected.
Not all dropdowns need to be used for the process to move forward, only one at the very least.
Also, each contact type can have various contacts for the same client.
Example: For the same client, there could be 3 Supervisors, 4 Engineers, 2 Specialists, etc.
So when I select the client and then the Supervisor dropdown, it shows me only contacts associated with that client that are supervisors. Same goes for all the other contact type dropdowns.
This allows me to select which contact for that type, associated with the Work Order in question.
Later on in the process, I need a dropdown that will list all of the contacts previously selected/input for that Work Order. The form and its contents will be saved/updated prior to needing to use the new drop down.
For example, if there is a contact selected/input for slots 1, 4, 7, & 8. I need all those names listed as available/selectable in the new drop down, regardless of type. I don't want all contacts for that client listed, only the ones previously selected for that specific work order.
I thought about creating an additional relationship between the contacts and work order but like this: Work Orders < Contacts. I figured that this would associate the Work Order ID (unique ID#) to the contacts. Then I could have a report built with a filter that only shows contacts associated with the current Work Order ID (I have done something similar for another relationship between other tables and it works).
I could take that report and associated with to a field dropdown in the main Work Order form, thus listing all contacts already used in the work order.
Except that it didn't work and I am not sure where I went wrong, if my thought process is incorrect, if I am missing something, etc.
I think that perhaps part of the issue might be the Contacts < Work Order relationships might not be correctly associating the Work Order ID# with the corresponding contact, and thus populating into the other relationship and down to the report.
Any thoughts anyone has, ideas, suggestions, etc., is appreciated.
------------------------------
Andrew
andrew.fry25@gmail.com
------------------------------
My relationships are as follows:
Clients < Work Orders
Clients < Contacts
Contacts < Work Orders (x9)
I have a Client drop down in the Work Order form.
I have 9 relationships established between the Contacts table and Work Orders table due to the various types of contacts, i,e supervisor, engineer, specialist, etc.
I have 9 contact drop downs in the Work Order form, one for each contact type. They only show contacts that have a matching type. There is a drop down for Supervisor, one for Engineer, one for Specialist, etc etc etc.
The 9 contact drop downs are conditionally based upon the client selected.
Not all dropdowns need to be used for the process to move forward, only one at the very least.
Also, each contact type can have various contacts for the same client.
Example: For the same client, there could be 3 Supervisors, 4 Engineers, 2 Specialists, etc.
So when I select the client and then the Supervisor dropdown, it shows me only contacts associated with that client that are supervisors. Same goes for all the other contact type dropdowns.
This allows me to select which contact for that type, associated with the Work Order in question.
Later on in the process, I need a dropdown that will list all of the contacts previously selected/input for that Work Order. The form and its contents will be saved/updated prior to needing to use the new drop down.
For example, if there is a contact selected/input for slots 1, 4, 7, & 8. I need all those names listed as available/selectable in the new drop down, regardless of type. I don't want all contacts for that client listed, only the ones previously selected for that specific work order.
I thought about creating an additional relationship between the contacts and work order but like this: Work Orders < Contacts. I figured that this would associate the Work Order ID (unique ID#) to the contacts. Then I could have a report built with a filter that only shows contacts associated with the current Work Order ID (I have done something similar for another relationship between other tables and it works).
I could take that report and associated with to a field dropdown in the main Work Order form, thus listing all contacts already used in the work order.
Except that it didn't work and I am not sure where I went wrong, if my thought process is incorrect, if I am missing something, etc.
I think that perhaps part of the issue might be the Contacts < Work Order relationships might not be correctly associating the Work Order ID# with the corresponding contact, and thus populating into the other relationship and down to the report.
Any thoughts anyone has, ideas, suggestions, etc., is appreciated.
------------------------------
Andrew
andrew.fry25@gmail.com
------------------------------