Most recent date function

T

Techknownothing

I have a main form that populates tblCUSTOMER with many different
customers.
That form has a subform that populates tblHISTORY tracking the
purchases of each individual customer by date. Both tables are linked
by AUTO ID.
I want to run a query that pulls only the most recent entry from
tblHISTORY for a particular set of customers.
Any assistance is much appreciated

JC
 
G

Guest

I would start with a Totals query on tblHISTORY using only the CustomerID
field and the date field that will contain the most recent date. In the
Totals row of the query, use Group By for the CustomerID and Max for the date.
Then create another query that has tblCustomer joined to the CustomerID in
the above query and tblHistory joined to tblCustomer.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top