R
rwr
Does anyone have information on where I can find or how to do a YTD
query or report?
Thanks,
Ron
query or report?
Thanks,
Ron
Does anyone have information on where I can find or how to do a YTD
query or report?
trouble! said:= DateSerial(Year(Date()), 1, 1) AND < Date() + 1
Assuming that you have adatefield in the table (if you don't you're in real
Here's a rewrite, using temporal functionality (and easier to port to
other SQL products):
BETWEEN DATEADD('YYYY', DATEDIFF('YYYY', #1990-01-01 00:00:00#,
NOW()), #1990-01-01 00:00:00#)
AND DATEADD('D', DATEDIFF('D', #1990-01-01 00:00:00#, NOW()),
#1990-01-01 23:59:59#)
Jamie.
rwr said:Does anyone have information on where I can find or how to do a YTD
query or report?
Thanks,
Ron
Are DateAdd and DateDiff any more portable than DateSerial? (not criticising,
just asking)