Hi,
This seems to have been covered before, but none of the answers work for me...........
Bascially I have a query which looks at an inventory table.
I have 7 fields in the table:-
ID which is an autonumber
Product code
Opening balance
closing balance
Year
Period
Date timestamp
I can have the same product code for all periods within the year, so 2007, period 1 & 2 etc.
What I need to do is to get the latest / last record, pick up the closing balance and then use it as an opening balance for the next month.
I have tried using MAX, LAST, DMAX and nothing works, I get all records back whether they be period 1 or 12 !!
I have no concept of SQL and this is all done through MSACCESS.
Can anyone help PLEASE.
Thanks in advance
This seems to have been covered before, but none of the answers work for me...........
Bascially I have a query which looks at an inventory table.
I have 7 fields in the table:-
ID which is an autonumber
Product code
Opening balance
closing balance
Year
Period
Date timestamp
I can have the same product code for all periods within the year, so 2007, period 1 & 2 etc.
What I need to do is to get the latest / last record, pick up the closing balance and then use it as an opening balance for the next month.
I have tried using MAX, LAST, DMAX and nothing works, I get all records back whether they be period 1 or 12 !!
I have no concept of SQL and this is all done through MSACCESS.
Can anyone help PLEASE.
Thanks in advance