Max should work. I just tried creating a table with a field called date (don't call it this as it is a reserved word but it works for this example). I simply select the max(date) from table1 as the sql code shows below. that worked for me.
Thanks for the advice. My problem is that I have a purchase Items Query which includes the fields 'Item ID', 'Order Number', 'Order Date', 'Product Code', 'Quantity' and 'Unit Price' but if I put any fields in the new query other that 'Product Code' and 'Order Date' then the results include more than 1 record for some products.
I simply need to filter this list down to show all the above fields for the latest order date for each product code.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.