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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple Date SQL query

Status
Not open for further replies.

ncar35b

Technical User
Jan 10, 2003
55
US

I have a MS Access table (event) where I would like to query the date field (eventDate) to find the closest three future dates. Could somebody please help me figure out how to write a SQL query to do this?

Thanks!
 
Not sure well understood the question.
Something like this ?
SELECT TOP 3 eventDate FROM event
WHERE eventDate>=[Enter #m/d/yyyy# date]
ORDER BY eventDate;

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top