A Query that returns all Record for only Last date

yameen2011

Registered User.
Local time
Today, 16:50
Joined
Jan 19, 2013
Messages
59
Hi friends i want to write a query that display records for only last date entered in a table and i want to show all the records from last date entries in a table. sample attached.
Thanks.
 

Attachments

First run a query to find the max date in the table , then join this to the table to select all records that match.

Brian
 
thanks for response, can you give me a example of a such query based on my sample.
 
I don't have ACCESS at the moment but it would be like so

Myquery
Select max(mydate) as MaxOfmydate
From mytable

Query2. Which you run

Select *
From mytable inner join myquery on mytable.mydate= myquery.MaxOfmydate

Brian
 
Another

Code:
SELECT Student.ID
, Student.StdName
, Student.PostDate
FROM Student
WHERE
 (((Student.PostDate)=(Select Max(postdate) from student)));
 
Another

Code:
SELECT Student.ID
, Student.StdName
, Student.PostDate
FROM Student
WHERE
 (((Student.PostDate)=(Select Max(postdate) from student)));

thank you very much it works for me.
 

Users who are viewing this thread

Back
Top Bottom