Take a good look at the data in your date/time field...Ive run into
something similar when a smalldatetime field DID contain both (ie 09/15/2000
10:49:00) and since I did not specify a time in my query there was no match.
So you can either use some nice SQL code to get around this (I don't have an
example handy) or use a lil kludge something like this:

WHERE yourdatefield BETWEEN '#thedate# 00:01:00' AND '#thedate# 23:59:00'


Hope it helps...Adrian


-----Original Message-----
From: Sim Graves [mailto:[EMAIL PROTECTED]]

I feel so stupid asking this question but I just can't get it.

I want to use a WHERE clause in my query that looks at a date
field and returns just today's records. I tried DateCompare
among other
things but get an error in the WHERE clause. This is some
syntax thingy I guess.
Any examples would be appreciated.  Right now I'm using a CFIF
statement and DateCompare in my CFOUTPUT but I feel so
embarrassed that I can't get it to work the right way.


Looking for your kindness.

Sim

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to