DaleMartin
6 years agoQrew Member
Filter Reference Field Form selections and display result from another table
I have 5 tables with relationships built. Tables are: Connectors, Cables, Cable Assemblies, Cable/Connector and Build/Price.
In the Build/Price Table I have a form where I would like users to be able to find existing cable assembly part numbers by selecting Cable Type (pulled from the Cable Table) then based on that selection, The form allows them to select each Connector - Connector 1 and Connector 2 - which selections are limited depending on the cable chose. (relationship between the Build/Price and the Cable/Connector table filter the compatible cable and connectors). Users also input a length. This all functions properly and works great.
The next step that I am trying to figure out is how to display an existing part number - that resides in the Cable Assemblies table - I am trying to use a Text-Formula field for this and use it to scan the Cable Assemblies table to determine matches to user input selections of Cable, Length, Connector 1 and Connector 2 and if a match exists to display that Cable Assembly Part Number Field.
I have built all relationships and am pulling over all of the necessary data between the Build/Price Table and the Cable Assemblies table but I can't get the formula to find a match. It always responds with the "else" response. It seems like the formula works immediately on the selection of the cable so and then doesn't find matches so it displays the "else" response. Is there a way to delay the formula until after the 2nd connector is chosen? Not sure if that would work or not. Definitely need some help.
Here is the formula I am trying to use.
If([Cable]=[Assembly - Cable Part Number]and[Length (in inches)]=[Assembly - Length (")]and ([Connector 1 Name]=[Assembly - Connector 1 Part Number]or [Connector 1 Name]=[Assembly - Connector 2 Part Number])and([Connector 2 Name]=[Assembly - Connector 2 Part Number]or[Connector 2 Name]=[Assembly - Connector 1 Part Number]),[Cable Assembly Part Number],"See Product Team for Quote")
In the attached screenshots, the TEST field is what I am trying to populate. One of the screenshots shows the test field populated with "See Product Team for Quote") that is my else if it doesn't find a match. But notice, there have not yet been inputs or choices to Length, Connector 1 and Connector 2.
------------------------------
Dale Martin
------------------------------
In the Build/Price Table I have a form where I would like users to be able to find existing cable assembly part numbers by selecting Cable Type (pulled from the Cable Table) then based on that selection, The form allows them to select each Connector - Connector 1 and Connector 2 - which selections are limited depending on the cable chose. (relationship between the Build/Price and the Cable/Connector table filter the compatible cable and connectors). Users also input a length. This all functions properly and works great.
The next step that I am trying to figure out is how to display an existing part number - that resides in the Cable Assemblies table - I am trying to use a Text-Formula field for this and use it to scan the Cable Assemblies table to determine matches to user input selections of Cable, Length, Connector 1 and Connector 2 and if a match exists to display that Cable Assembly Part Number Field.
I have built all relationships and am pulling over all of the necessary data between the Build/Price Table and the Cable Assemblies table but I can't get the formula to find a match. It always responds with the "else" response. It seems like the formula works immediately on the selection of the cable so and then doesn't find matches so it displays the "else" response. Is there a way to delay the formula until after the 2nd connector is chosen? Not sure if that would work or not. Definitely need some help.
Here is the formula I am trying to use.
If([Cable]=[Assembly - Cable Part Number]and[Length (in inches)]=[Assembly - Length (")]and ([Connector 1 Name]=[Assembly - Connector 1 Part Number]or [Connector 1 Name]=[Assembly - Connector 2 Part Number])and([Connector 2 Name]=[Assembly - Connector 2 Part Number]or[Connector 2 Name]=[Assembly - Connector 1 Part Number]),[Cable Assembly Part Number],"See Product Team for Quote")
In the attached screenshots, the TEST field is what I am trying to populate. One of the screenshots shows the test field populated with "See Product Team for Quote") that is my else if it doesn't find a match. But notice, there have not yet been inputs or choices to Length, Connector 1 and Connector 2.
------------------------------
Dale Martin
------------------------------