BrockLanders
Programmer
Hello
I have a very simple SQL query that is suppossed to return the latest date (most recent) from a table. The table is called tblTest and only contains one field called Date in the Date/Time data type. There are two records in the table: 11/16/2002 and 11/23/2002. When I run my query, it just gives me these two records rather than just the most recent date. Below is my SQL code.
SELECT tblTest.Date
FROM tblTest
GROUP BY tblTest.Date
HAVING (((tblTest.Date)=Max([tblTest].[Date])));
Any help on this issue would be much appreciated.
Thanks
I have a very simple SQL query that is suppossed to return the latest date (most recent) from a table. The table is called tblTest and only contains one field called Date in the Date/Time data type. There are two records in the table: 11/16/2002 and 11/23/2002. When I run my query, it just gives me these two records rather than just the most recent date. Below is my SQL code.
SELECT tblTest.Date
FROM tblTest
GROUP BY tblTest.Date
HAVING (((tblTest.Date)=Max([tblTest].[Date])));
Any help on this issue would be much appreciated.
Thanks