Your question:
Originally Posted by
mismag
For some reason, the "ProductID" column in "TblSaleDetails" is not being updated when i pick a product in the form and enter data for it.
You have the combo box for the product bound to the field "ProductName" and not to the field "ProductID". Since you are saving the actual product name, the "ProductID" does not get updated.
This is why I said the field "ProductName" should be deleted from the table "TblSalesDetails". You only need one of the fields. (I would use/save the ProductID value, not the text name)
If you are going to use/save the "ProductName", then you don't need the ProductID in the combo box row source
Code:
SELECT TblProducts.ProductName, TblProducts.ProductID FROM TblProducts;
You could delete the ProductID field in the table TblSalesDetails since it is not being used.