Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

make query with max[appdate]

Status
Not open for further replies.

Bullsandbears123

Technical User
Feb 12, 2003
291
US
I have a table, e.g.
mytable

[appdate] [info]
1/12/2004 231
1/12/2004 466
1/12/2004 465
1/11/2004 888
1/11/2004 817
1/10/2004 324
etc. etc.


I need
myquery
[appdate] [info]
1/12/2004 231
1/12/2004 466
1/12/2004 465

I need to query all data from the maxium date. How would I do this.
I tried
SELECT mytable.* FROM mytable WHERE mytable!appdate=Max([appdate]);

but it does not work , Any ideas?
 
Try this:

SELECT Mytable.Appdate, Mytable.Info
FROM Mytable
WHERE (((Mytable.Appdate)=DMax("Appdate","Mytable")));


Ascii dumb question, get a dumb Ansi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top