Ok, basically the problem is that I have a subform where the default view is set to Datasheet. On this subform I have 5 fields, 2 of which are combo boxes. The values in the first combo box (cboCategory) are populated from table Category. The values in the second combo box (cboType) are populated from table Products and are dependant on what value is selected in the first combo box. Up to this point everything works fine - I'm able to populate the second combo box with the correct values depending on what was selected in the first combo box. However, when I then select a value in the second combo box, all of the values for cboType in the existing records displayed on the datasheet subform also change!!! What am I doing wrong??
Just for your information, the RowSource for the first combo box is as follows:
SELECT Category.CategoryID, Category.CategoryName FROM Category;
The values for the second combo box are populated via the following query:
SELECT DISTINCT Products.ProductID, Products.ProductName, Products.CategoryID FROM Products WHERE Products.CategoryID=[Forms]![Product_frm]![Products_detail_frm].[Form]![cboCategory];
Any ideas as to what I'm doing wrong??
Just for your information, the RowSource for the first combo box is as follows:
SELECT Category.CategoryID, Category.CategoryName FROM Category;
The values for the second combo box are populated via the following query:
SELECT DISTINCT Products.ProductID, Products.ProductName, Products.CategoryID FROM Products WHERE Products.CategoryID=[Forms]![Product_frm]![Products_detail_frm].[Form]![cboCategory];
Any ideas as to what I'm doing wrong??