Trouble getting the last record

klwu

Brainy!!
Local time
Tomorrow, 04:19
Joined
Sep 13, 2004
Messages
47
Hey, I have a query to calculate the stock balances and their values.....the client is using FIFO method...therefore, the stock may have different values at different stage......but they want to display the latest unit price in the report.......I selected "Last" at the UPrice column in the query, but the query doesn't give me the value I want.....

e.g.

Date In Out UPrice
03/12/05 12 0 22.00
03/14/05 0 12 22.00
03/15/05 15 0 24.50

In this example, the report should displays 24.50, but it displayed 22.00.....
can someone point to me where I have made the mistake?? Thank you
 
Use max on the Date field.
Read Access help to discover what Last really does

Brian
 

Users who are viewing this thread

Back
Top Bottom