G
Guest
I need help with a query that will look up the value of the previous record
of the overall revision but with the same quote number. I would also like to
subtract the previous sell amount from the current amount. Can anyone help
me? Here is the sql of the query, your help is greatly appreciated.
SELECT tblQuotationDollars.[Quote Number], tblQuotationDollars.[Date Sent],
tblQuotationDollars.Sell, tblQuotationDollars.[Overall Revision],
DLookUp("[Sell]","tblQuotationDollars","[Overall Revision]=" & [Overall
Revision]-1) AS Expr1
FROM tblQuotationDollars
WHERE (((tblQuotationDollars.[Date Sent])>=#6/1/2007# And
(tblQuotationDollars.[Date Sent])<=#6/30/2007#));
of the overall revision but with the same quote number. I would also like to
subtract the previous sell amount from the current amount. Can anyone help
me? Here is the sql of the query, your help is greatly appreciated.
SELECT tblQuotationDollars.[Quote Number], tblQuotationDollars.[Date Sent],
tblQuotationDollars.Sell, tblQuotationDollars.[Overall Revision],
DLookUp("[Sell]","tblQuotationDollars","[Overall Revision]=" & [Overall
Revision]-1) AS Expr1
FROM tblQuotationDollars
WHERE (((tblQuotationDollars.[Date Sent])>=#6/1/2007# And
(tblQuotationDollars.[Date Sent])<=#6/30/2007#));