S
Sam
Hi,
I have an unbound text box on a form that I want to look
up and display the most recent order date.
I've created a query with the fields:
OrderID OrderDate Customer ID
so I only want to see the orders for this particular
customer - I'm using as criteria Forms!Contacts!CustomerID
My query pulls the correct orders (and sorts them desc by
OrderDate) but I want only the most recent order. Can you
use Max in a query?
Once I get the correct date, I can use a macro to set the
value of the text box. Suggestions? Am I going about
this the right way?
Thank you,
Sam
I have an unbound text box on a form that I want to look
up and display the most recent order date.
I've created a query with the fields:
OrderID OrderDate Customer ID
so I only want to see the orders for this particular
customer - I'm using as criteria Forms!Contacts!CustomerID
My query pulls the correct orders (and sorts them desc by
OrderDate) but I want only the most recent order. Can you
use Max in a query?
Once I get the correct date, I can use a macro to set the
value of the text box. Suggestions? Am I going about
this the right way?
Thank you,
Sam