by jburri » Mon, 27 Mar 2006 09:53:15
I am trying to modify an order entry program such that one combo box in
a subform is limited by another combo box in the same subform. The
following code is from the row source what will become the limited
combo box but currently is not limited. In this format everything
works.
SELECT DISTINCTROW Products.ProductID_1, Products.ProductCode,
Products.Course_Start_Date, Products.Course_Airport, Products.UnitPrice
FROM Products ORDER BY Products.Course_Start_Date DESC ,
Products.SortProductNoPdct;
I would like to add a combo box showing the "Week_Long_Designation"
to limit the choices of "Product Code". The following changes to
the code result in the second combo box being Read Only. The tables
have a One to Many relationship in the query builder.
SELECT DISTINCTROW Products.ProductID_1, Products.ProductCode,
Products.Course_Start_Date, Products.Course_Airport,
Products.UnitPrice, [Product Descriptions].Week_Long_Designation FROM
[Product Descriptions] INNER JOIN Products ON [Product
Descriptions].ProductDescriptionID = Products.[Product
DescriptionsIDLUP] WHERE ((([Product
Descriptions].Week_Long_Designation)=[forms]![orders]![order details
subform]![week_long_designation])) ORDER BY Products.Course_Start_Date
DESC;
If I change the Week_Long_Designation criteria from
[forms]![orders]![order details subform]![week_long_disignation] to a
parameter [Enter Week Long Designation] the query works fine in the
query builder.
I do have the requery in the After Update Event for the first combo
box. Do I need another somewhere?
Any advice will be greatly appreciated. Thanks for your time.
Judy