H
Huber57
All:
I would like to start by saying that I have reviewed every post I could find
on this site, a half dozen websites devoted to dependent dropdown lists and I
cannot get it to work ... so I am throwing myself on the mercy of the masses
to help me.
I have two tables. The first tracks brokerage firms and the other (in a
1-to-many relationship) tracks the brokers that work for each brokerage firm.
The two tables are linked by the PK in the brokerage firm table
(BrokerageNumber field) to the FK BrokerageNumber field in the broker table.
In my form I have two combo boxes. The first (titled Brokerage_Combo) has a
Row Source type of Table/Query and the Row Source is:
SELECT Brokerage_Firm_Table.BrokerageNumber, Brokerage_Firm_Table.Brokerage
FROM Brokerage_Firm_Table
ORDER BY Brokerage_Firm_Table.Brokerage;
I have also created (like the websites suggest) an event procedure in the
Brokerage_Combo box:
Private Sub Brokerage_Combo_AfterUpdate()
Me.Broker_Combo.Requery
End Sub
The second combo box (titled Broker_Combo) has a Row Source type of
Table/Query and the Row Source of:
SELECT Broker_Table.BrokerNumber, Broker_Table.BrokerLastName
FROM Broker_Table
WHERE
(((Broker_Table.BrokerageNumber)=[Forms]![Brokerage_Form]![Brokerage_Combo]))
ORDER BY Broker_Table.BrokerLastName;
I believe this is exactly how the examples online show it but it still does
not work.
Help please?!!
Thanks much in advance.
I would like to start by saying that I have reviewed every post I could find
on this site, a half dozen websites devoted to dependent dropdown lists and I
cannot get it to work ... so I am throwing myself on the mercy of the masses
to help me.
I have two tables. The first tracks brokerage firms and the other (in a
1-to-many relationship) tracks the brokers that work for each brokerage firm.
The two tables are linked by the PK in the brokerage firm table
(BrokerageNumber field) to the FK BrokerageNumber field in the broker table.
In my form I have two combo boxes. The first (titled Brokerage_Combo) has a
Row Source type of Table/Query and the Row Source is:
SELECT Brokerage_Firm_Table.BrokerageNumber, Brokerage_Firm_Table.Brokerage
FROM Brokerage_Firm_Table
ORDER BY Brokerage_Firm_Table.Brokerage;
I have also created (like the websites suggest) an event procedure in the
Brokerage_Combo box:
Private Sub Brokerage_Combo_AfterUpdate()
Me.Broker_Combo.Requery
End Sub
The second combo box (titled Broker_Combo) has a Row Source type of
Table/Query and the Row Source of:
SELECT Broker_Table.BrokerNumber, Broker_Table.BrokerLastName
FROM Broker_Table
WHERE
(((Broker_Table.BrokerageNumber)=[Forms]![Brokerage_Form]![Brokerage_Combo]))
ORDER BY Broker_Table.BrokerLastName;
I believe this is exactly how the examples online show it but it still does
not work.
Help please?!!
Thanks much in advance.