W
WoodyAccess
I have an Order form with Order Detials Subform.
The Orders Form has a cbo to select Supplier, with an AfterUpdate of
Me![Order Details Subform].Form!cboProduct.Requery
The subform has a Product cbo which has SQL statement which works.
SELECT tblProducts.ProductID, tblProducts.Product, tblProducts.UnitPrice,
tblProducts.UnitType, tblProducts.OperationsCode, tblProducts.Discontinued,
tblProducts.SupplierID
FROM tblProducts
WHERE (((tblProducts.SupplierID)=[Forms]![Add an Order and
Details].[Form]![cboSupplierID]))
ORDER BY tblProducts.ProductID, tblProducts.Product;
And an AfterUpdate code of
Me.UnitPrice = Me.cboProduct.Column(2)
Me.UnitType = Me.cboProduct.Column(3)
Me.OperationsCode = Me.cboProduct.Column(4)
However, when i use the record selector to view the next order or the
previous order (which I have already inputted the necessary data) the product
text in the Product cbo disappears but all the other relevant information (ie
UnitPrice, UnitType etc) remain.
Also if I try and put in extra data in the subform, the Product cbo dropdown
options are not linked to the supplier combo on the orders form. I have to
reselect the supplier to get the correct dropdown options.
Why does the disappear and how can i stop it?
And how can I make the dropdown options always relevant to the supplier when
I go through the records?
The Orders Form has a cbo to select Supplier, with an AfterUpdate of
Me![Order Details Subform].Form!cboProduct.Requery
The subform has a Product cbo which has SQL statement which works.
SELECT tblProducts.ProductID, tblProducts.Product, tblProducts.UnitPrice,
tblProducts.UnitType, tblProducts.OperationsCode, tblProducts.Discontinued,
tblProducts.SupplierID
FROM tblProducts
WHERE (((tblProducts.SupplierID)=[Forms]![Add an Order and
Details].[Form]![cboSupplierID]))
ORDER BY tblProducts.ProductID, tblProducts.Product;
And an AfterUpdate code of
Me.UnitPrice = Me.cboProduct.Column(2)
Me.UnitType = Me.cboProduct.Column(3)
Me.OperationsCode = Me.cboProduct.Column(4)
However, when i use the record selector to view the next order or the
previous order (which I have already inputted the necessary data) the product
text in the Product cbo disappears but all the other relevant information (ie
UnitPrice, UnitType etc) remain.
Also if I try and put in extra data in the subform, the Product cbo dropdown
options are not linked to the supplier combo on the orders form. I have to
reselect the supplier to get the correct dropdown options.
Why does the disappear and how can i stop it?
And how can I make the dropdown options always relevant to the supplier when
I go through the records?