Ok, first, I apologize for the length of the subject. I didn't quite know how to describe my problem. Second, I learned a wealth of knowledge just from perusing and searching all these forums so my thanks go out to all those who have ever answered a post. Third, I couldn't really find a solution to my problem, hence my turn post. 
I have a form with 2 combo boxes that ultimately provide data for a query that populates a subform. Both controls are unbounded. Combo1 gets its data from a very simple query based on a table:
By default, Combo2 is based on the following code (please note that the fields used to populate each control are linked THROUGH multiple tables):
When a value in Combo1 is selected, the AfterUpdate event fires and requeries Combo2 to display a reduced list of choices based on Combo1:
All of this works as expected to produce desired results. What I want to do now is the reverse within the same form. In other words, I want to select a value from Combo2 which would alter the contents of Combo1 accordingly. I will illustrate further if it helps:
(Initial State)
Combo1 = "Access", "Word", "Excel", "Power Point", "Project",...,"AppN"
Combo2 = "Server1", "Server2", "Server3",...,"ServerN"
(Current Configuration)
Combo1 = "Access"
Combo2 = "Server2", "Server5",...,"ServerX"
(Desired Action)
Combo2 = "Server4"
Combo1 = "Word", "Project",...,"AppX"
Thanks in advance for your assistance...
Charlie
I have a form with 2 combo boxes that ultimately provide data for a query that populates a subform. Both controls are unbounded. Combo1 gets its data from a very simple query based on a table:
Code:
SELECT LU_APPNAME.APPNAME
FROM LU_APPNAME
ORDER BY LU_APPNAME.APPNAME;
By default, Combo2 is based on the following code (please note that the fields used to populate each control are linked THROUGH multiple tables):
Code:
SELECT LU_SERVERNAME.SERVERNAME, LU_APPNAME.APPNAME FROM LU_SERVERNAME INNER JOIN (LU_SERVER INNER JOIN (LU_APPNAME INNER JOIN SDB_SESSION ON LU_APPNAME.PK_APPNAMEID=SDB_SESSION.FK_APPNAMEID) ON LU_SERVER.PK_SERVERID=SDB_SESSION.FK_SERVERID) ON LU_SERVERNAME.PK_SERVERNAMEID=LU_SERVER.FK_SERVERNAMEID GROUP BY LU_SERVERNAME.SERVERNAME, LU_APPNAME.APPNAME HAVING (((LU_APPNAME.APPNAME)=Forms![frm_User Session Metrics with Subform]!AppName)) ORDER BY LU_SERVERNAME.SERVERNAME, LU_APPNAME.APPNAME;
When a value in Combo1 is selected, the AfterUpdate event fires and requeries Combo2 to display a reduced list of choices based on Combo1:
Code:
Me![SERVERNAME].Requery
All of this works as expected to produce desired results. What I want to do now is the reverse within the same form. In other words, I want to select a value from Combo2 which would alter the contents of Combo1 accordingly. I will illustrate further if it helps:
(Initial State)
Combo1 = "Access", "Word", "Excel", "Power Point", "Project",...,"AppN"
Combo2 = "Server1", "Server2", "Server3",...,"ServerN"
(Current Configuration)
Combo1 = "Access"
Combo2 = "Server2", "Server5",...,"ServerX"
(Desired Action)
Combo2 = "Server4"
Combo1 = "Word", "Project",...,"AppX"
Thanks in advance for your assistance...
Charlie