Using Access 2002.
I have a table that shows each time an item was ordered along with the date it was ordered and the cost. Generically, it looks like this:
Item # Date ordered Cost
000455 1/1/2006 45.67
000455 2/15/2006 45.67
000455 10/20/2006 49.00
000567 4/16/2006 256.00
000567 9/15/2006 260.00
So, for each item there may be anywhere from 1-50 different lines with different dates/prices. I am trying to create a query that will pull the most current date and cost. So the query results would be:
Item # Date ordered Cost
000455 10/20/2006 49.00
000567 9/15/2006 260.00
I thought I read something about a 'last' function, but can't find any more info -- like how to use it. Is there any way to get Access to pull the most current date in a query?
I have a table that shows each time an item was ordered along with the date it was ordered and the cost. Generically, it looks like this:
Item # Date ordered Cost
000455 1/1/2006 45.67
000455 2/15/2006 45.67
000455 10/20/2006 49.00
000567 4/16/2006 256.00
000567 9/15/2006 260.00
So, for each item there may be anywhere from 1-50 different lines with different dates/prices. I am trying to create a query that will pull the most current date and cost. So the query results would be:
Item # Date ordered Cost
000455 10/20/2006 49.00
000567 9/15/2006 260.00
I thought I read something about a 'last' function, but can't find any more info -- like how to use it. Is there any way to get Access to pull the most current date in a query?