By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
426,222 Members | 1,123 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 426,222 IT Pros & Developers. It's quick & easy.

Using query to filter records by date

P: 1

I am using Microsoft Access 2007. I am attemping to create a query that filters a table by the field DateFinalized. The relevant fields in the table (named Assignments) are LastName and DateFinalized. Each LastName can have multiple DateFinalized records. The purpose of my query is to only select the most recent date for each LastName. After reading around the site I tried a method of ordering the table by ascending order and changing the Query Properties "Top Values" to 1. Although, as excepted, this only pulled the most recent date for one LastName. How would I approach pulling the most recent date for each LastName? I appreciate the help.
Jan 2 '08 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 10K+
P: 12,357
Use a max on the date and group by the last name.
Jan 2 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.