G
Guest
Hello,
I am fairly new to Access VBA programming so please bear with me.
I am working on a form which has 2 combo boxes. The first cbo will display
1 of 2 possible company names which are selected from a lookup table. Each
company has a number of departments associated with it. This reflects a
1-to-many relationship. When either company is selected, the 2nd cbo becomes
active. I need this 2nd cbo to display the results of a query which should
be executed when the company is selected. This query should basically be:
Select Department from LkTbl
where form.company = LkTbl.Company;
I have created this as a query. How do I attach this query? Should the
query be the rowsource for the Dept. cbo or something else?
TIA,
Rich
I am fairly new to Access VBA programming so please bear with me.
I am working on a form which has 2 combo boxes. The first cbo will display
1 of 2 possible company names which are selected from a lookup table. Each
company has a number of departments associated with it. This reflects a
1-to-many relationship. When either company is selected, the 2nd cbo becomes
active. I need this 2nd cbo to display the results of a query which should
be executed when the company is selected. This query should basically be:
Select Department from LkTbl
where form.company = LkTbl.Company;
I have created this as a query. How do I attach this query? Should the
query be the rowsource for the Dept. cbo or something else?
TIA,
Rich