Date Filter in Report

W

Will

I have a database of records that span over 3 years.
I want to cull out the records from a specific year in a
report. I have a date field in my table, how do I get
the report to only report the records from the year I
want say for example 2002?

thanks for the help
 
F

Fredg

Will,
Base the Report on a query.
In the query, on the Datefield's criteria line write:

Year([DateField]) = [enter year wanted]

When the report is run, you will be prompted for the year.
Enter 2002.
 
K

Ken Snell

You could use a filter criterion such as this when you open the report:

"Year([DateField])=" & DateVariable

where DateVariable is a variable with the "year" value that you want to use.
 

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

Top