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

Querying MS Access Dates??

Status
Not open for further replies.

kloner

Programmer
May 15, 2000
79
AU
Hi All,

i am having a heap of trouble with my SQL statement in CF. The code is as shown ...

<cfquery name=&quot;GetArchives&quot; datasource=&quot;DSN&quot;>
SELECT *
FROM Newsletter
WHERE NewsDate > '31/12/99'
AND Status='Archive'
AND Publish='Publish'
ORDER BY NewsDate;
</cfquery>

Show : #DateFormat(NewsDate, &quot;dd/mm/yyyy&quot;)#

I am using MS Access as the db (not my choice, its the clients!). The problem is that I can't get past my sql query, heaps of trouble. Any ideas??

The main aim to to produce a list of results inbetween the dates 1/1/99 and 31/12/99. Thanks for your sugestions.

Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top