YTD Reports

S

SarahJ

I have a report that pulls YTD reports. Since we are now going into a new
year I would like it to only report 2008 data what do I need to put in the
query to make it only pull the current year data?
 
J

John Spencer

Assuming you have a date field to base this on

Field: SomeDate
Criteria: > DateSerial(Year(Date()),1,1)

That criteria gets all records on or after midnight of January 1 of the
current year (as determined by your computer's system date).

--
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
..
 
D

Duane Hookom

Your Where clause would contain something like:
WHERE Year([YourDateField]) = Year(Date())
 
S

SarahJ

Duane Hookom said:
Your Where clause would contain something like:
WHERE Year([YourDateField]) = Year(Date())

--
Duane Hookom
Microsoft Access MVP
If I have helped you, please help me by donating to UCP
http://www.access.hookom.net/UCP/Default.htm


SarahJ said:
I have a report that pulls YTD reports. Since we are now going into a new
year I would like it to only report 2008 data what do I need to put in the
query to make it only pull the current year data?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Problem with counting 5
Reports 6
Monthly Reports from YTD Reports 1
YTD and MTD math in a report. 4
Horizontal Column 1
Sum YTD totals 1
Month and Year to Date on a Report 2
Monthly and YTD On Same Page 1

Top