G
Guest
Hi.
I wanted to do a query in Access where I can get the latest purchased date
of an item, the last item the customer purchased and the customer's
identifier(which is all on one table). I have a whole list of customers .
It worked when I did the max function with the customer's identifier and the
latest purchase date. But when I did a separate query with the customer and
the latest item that the customer purchased it somehow retrieves the item
alphabetically closest to the letter Z.
An example of item names: Book, Frame, Paper, Staples. Access will
retrieve "Staples" as the max item even though it does not match with the
customer's last purchase date.
Is there a way to solve this problem? Also is there a way to do it at one
time, or do I have to do it in two queries?
Hope to hear from someone soon.
I wanted to do a query in Access where I can get the latest purchased date
of an item, the last item the customer purchased and the customer's
identifier(which is all on one table). I have a whole list of customers .
It worked when I did the max function with the customer's identifier and the
latest purchase date. But when I did a separate query with the customer and
the latest item that the customer purchased it somehow retrieves the item
alphabetically closest to the letter Z.
An example of item names: Book, Frame, Paper, Staples. Access will
retrieve "Staples" as the max item even though it does not match with the
customer's last purchase date.
Is there a way to solve this problem? Also is there a way to do it at one
time, or do I have to do it in two queries?
Hope to hear from someone soon.