G
Guest
Hi. I am in desperate need to get my Append Query working. This is the SQL I
have used:
INSERT INTO tblOrders ( CompanyID, ProductCode, Quantity, OrderSent )
SELECT tblProducts.CompanyID, [qryPercentage Of Stock].ProductCode,
tblProducts.Quantity, Now() AS AppendThisDate
FROM ([tblCompany's] INNER JOIN tblOrders ON [tblCompany's].CompanyID =
tblOrders.CompanyID) INNER JOIN (tblProducts INNER JOIN [qryPercentage Of
Stock] ON tblProducts.ProductCode = [qryPercentage Of Stock].ProductCode) ON
(tblProducts.ProductCode = tblOrders.ProductCode) AND
([tblCompany's].CompanyID = tblProducts.CompanyID)
WHERE ((([qryPercentage Of Stock].PercentageOfStock)<=0.25));
The query looks to see if the Stock Level is below 25% from a qry which
lists the percentages of Items in stock. The only exception is, it doesn't
find these records to show in Datasheet View!
The weird thing is, it used to work before but for some reason now it fails.
Any help, please?
have used:
INSERT INTO tblOrders ( CompanyID, ProductCode, Quantity, OrderSent )
SELECT tblProducts.CompanyID, [qryPercentage Of Stock].ProductCode,
tblProducts.Quantity, Now() AS AppendThisDate
FROM ([tblCompany's] INNER JOIN tblOrders ON [tblCompany's].CompanyID =
tblOrders.CompanyID) INNER JOIN (tblProducts INNER JOIN [qryPercentage Of
Stock] ON tblProducts.ProductCode = [qryPercentage Of Stock].ProductCode) ON
(tblProducts.ProductCode = tblOrders.ProductCode) AND
([tblCompany's].CompanyID = tblProducts.CompanyID)
WHERE ((([qryPercentage Of Stock].PercentageOfStock)<=0.25));
The query looks to see if the Stock Level is below 25% from a qry which
lists the percentages of Items in stock. The only exception is, it doesn't
find these records to show in Datasheet View!
The weird thing is, it used to work before but for some reason now it fails.
Any help, please?