Well I would imagine you should do a WHERE statement (assuming that bDay
contains a complete date):
<CFQUERY NAME="GetEvents" DATASOURCE="schedule">
SELECT bEvent, bTime, bDay
FROM bGames
WHERE bDay = '#CreateODBCDate(Now())#'
Order BY bGames.bDay
</CFQUERY>
Of course the right-side comparison for date should comply to whatever
database you are using but I think you get the idea.
Steven Semrau
SRA International, Inc.
Senior Member, Professional Staff
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Com: (703) 805-1095
DSN: (703) 655-1095
-----Original Message-----
From: Ann Harrell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 03, 2001 10:40 PM
To: CF-Talk
Subject: Sort by Event
I have this query that shows all events in a database. What do I need to add
to not show older expired events? I just want to show events from 'today'
on.
<CFQUERY NAME="GetEvents" DATASOURCE="schedule">
SELECT bEvent, bTime, bDay
FROM bGames
Order BY bGames.bDay
</CFQUERY>
Ann Harrell
Mind like a steel trap..
Rusty and illegal in 37 states.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists