This is all in SQL Server
I am wanting to set a dropdown so I can change values based on a table on the screen that is already filtered.
It is a 3 tier hierarchy that uses a text input to filter the top table. A selection in the top table then filters the 2nd table. A selection in the 2nd table then filters a 3rd table. Selecting an item in the list may need the reference value from table 2 edited to another valid value in table 2. I was able to get the entire list in the drop down but I only want the values from the 2nd table to show up.
The hierarchy is:
CompanyMaster
Company (references CompanyMaster key value)
Account (References Company key value) which is what I want in the dropdown to be able to change
If I use dbo.company and place the company key value as the default of the selected record the dropdown then shows all values from the company key values in the database.
How do I get the dropdown filtered?
TIA