G
Guest
I have a order details subform opened as a datasheet. The first column is
the product id that I display using a combo box that actually displays the
product name. The next column is the product size column. I only want this
to display the sizes available for the product that has been chosen in the
previous column.
I have attempted the following in the ProductID_AfterUpdate event:
Me![ProductSizeID].Filter = "ProductID = 1" -- hard code for the moment
Me![ProductSizeID].FilterOn = True
Me![ProductSizeID].Requery
This does not work - as the ProductSizeID does not support this property or
method.
Then I attempted to change the RowSource for the ProductSizeID in the
ProductID_AfterUpdate event using :
Me![ProductSizeID].RowSource = " SELECT DISTINCTROW ProductSizesLookup.*,
[ProductSizesLookup].Description, [ProductSizesLookup].ProductName,
[ProductSizesLookup].ProductSizeID " & _
" FROM ProductSizesLookup WHERE ProductID = 1 "
This also failed with Object does not support this property or method.
I have read lots of previous questions in this discussion about combo boxes
but could not understand the answers. Please answer with as much detail as
possible.
Many thanks in advance,
Annie
the product id that I display using a combo box that actually displays the
product name. The next column is the product size column. I only want this
to display the sizes available for the product that has been chosen in the
previous column.
I have attempted the following in the ProductID_AfterUpdate event:
Me![ProductSizeID].Filter = "ProductID = 1" -- hard code for the moment
Me![ProductSizeID].FilterOn = True
Me![ProductSizeID].Requery
This does not work - as the ProductSizeID does not support this property or
method.
Then I attempted to change the RowSource for the ProductSizeID in the
ProductID_AfterUpdate event using :
Me![ProductSizeID].RowSource = " SELECT DISTINCTROW ProductSizesLookup.*,
[ProductSizesLookup].Description, [ProductSizesLookup].ProductName,
[ProductSizesLookup].ProductSizeID " & _
" FROM ProductSizesLookup WHERE ProductID = 1 "
This also failed with Object does not support this property or method.
I have read lots of previous questions in this discussion about combo boxes
but could not understand the answers. Please answer with as much detail as
possible.
Many thanks in advance,
Annie