Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Report in a certain time frame

Status
Not open for further replies.

Thora

Technical User
May 28, 2003
2
US

Report in a certain time frame - from date to date.

If my query began January 2000 till May 2003,
how do print a report from June 2001 - December 2002.
This is just an example of what I am trying to accomplish.

If this makes sense to anyone...I will be greatfull for the help.

Thanks,
Thora
 
Hi,
I created a form where the user can select two different dates, a "From" date and a "To" date. I then use these dates as criteria for a query. The report uses the query as its recordsource. I wrote an FAQ on how to send criteria to a query. Take a look at this FAQ: faq703-2696

Your date field inside the query will have a criteria similar to this:
Between "#" & [Forms]![frmDateRangeRept]![txtFrom] & "# and #" [Forms]![frmDateRangeRept]![txtTo] & "#"

FYI: The pound signs are REQUIRED to be placed around text box fields that are acting as dates.

HTH, [pc2]
Randy Smith
California Teachers Association
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top