installer69
Programmer
Hi,
My simple table consists of 'ID' (autonumber), 'serial' (number) and 'movement' (text)
eg:
1 1001 add to stock
2 1002 add to stock
3 1003 add to stock
4 1001 issue
5 1002 issue
6 1001 return
7 1002 installed
I need to write a query that will list the last movement of each serial. I thought I had it by setting total for 'movement' as 'last' in the query until I realised this just gives the last according to alphabetical progression!! (in the case of serial 1002 above it returned 'issue' because 'issue' comes after 'installed' alphabetically although the last movement was 'installed')
My simple table consists of 'ID' (autonumber), 'serial' (number) and 'movement' (text)
eg:
1 1001 add to stock
2 1002 add to stock
3 1003 add to stock
4 1001 issue
5 1002 issue
6 1001 return
7 1002 installed
I need to write a query that will list the last movement of each serial. I thought I had it by setting total for 'movement' as 'last' in the query until I realised this just gives the last according to alphabetical progression!! (in the case of serial 1002 above it returned 'issue' because 'issue' comes after 'installed' alphabetically although the last movement was 'installed')