G
Guest
I have a query based on two fields in a table, AmountInStock:[AmountBought] -
[AmountSold]. How do I return this value to the table, tblProducts. Do I need
a field in the table AmountInStock and assign it the value?
This is the query:
SELECT tblProducts.ProductTypeID, tblProducts.ProductType,
tblProducts.ProductName, tblProducts.PurchasePrice, tblProducts.SalePrice,
tblProducts.Size, tblProducts.AmountBought, tblProducts.AmountSold,
[AmountBought]-[AmountSold] AS AmountInStock
FROM tblProducts;
[AmountSold]. How do I return this value to the table, tblProducts. Do I need
a field in the table AmountInStock and assign it the value?
This is the query:
SELECT tblProducts.ProductTypeID, tblProducts.ProductType,
tblProducts.ProductName, tblProducts.PurchasePrice, tblProducts.SalePrice,
tblProducts.Size, tblProducts.AmountBought, tblProducts.AmountSold,
[AmountBought]-[AmountSold] AS AmountInStock
FROM tblProducts;