I was using the apples & oranges scenario because I did not want to bore you guys with specifics. I am tying to build a database that tracks Loan Applications. This requires numerous tables with one to many relationships and some of these relationships are more that three levels deep. What I am tying to do is learn how to create queries that limit data in a combo-box based on a selection from another combo-box.
I have a group of tables related as such.
tblBrokerCompanies to many tblBrokerLoanOfficers
tblBrokerCompanies to many tblBrokerLoanProcessors
I have another table called tblLoanApps. This table has 2 “look-up” combo-boxes for selecting a BrokerLoanOfficer and BrokerLoanProcessor, respectively. BrokerLoanOfficer(s) are unique and can only be associated with one of many different BrokerCompanies. BrokerProcessors have the same sort of relationship.
The BrokerLoanOfficer combo-box in frmLoanApps is populated with all BrokerLoanOfficers where status = -1 (active). Currently, the Loan Processor Combo-box lists all processors from all Broker Companies without respect to the Broker Company associated with the selected loan Officer. Not Good!
When a BrokerLoanOfficer is selected in the first combo-box, I need two things to happen.
First, I need certain information from the BrokerCompany, associated with the BrokerLoanOfficer via tblBrokerCompaies, to be displayed on the form.
Second, I need the list of LoanProcessors in the LoanProcessor combo-box to list only the LoanProcesors where the BrokerCompanyID field in the tblBrokerProcessor, associated with the selected LoanProcessor, matches the BrokerCompanyID field in tblBrokerLoanOfficers based on the BrokerLoanOfficer selected in the BrokerLoanOfficer combo box.
I can accomplish this with a parameter query but I do not know how to pass the BrokerCompanyID value, associated with the BrokerLoanOfficerID, selected in the first combo-box to the select query for the second combo-box. I will also have to keep the BrokerLoanProcessor combo-box deactivated until after a BrokerLoanOfficer has been selected.
Piece of cake, r I g h t !!
SORRY about the long version and THANKS for any help. I usually to stick to Ms-Excel applications, which is how I originally found this board. It has always proven to be the best out there and very responsive. THANKS, THANKS, THANKS!