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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display a specified date range on a report

Status
Not open for further replies.

Spicealdous

Technical User
Feb 25, 2003
9
0
0
GB
I have set up a basic query in which I have a date field. In the criteria for this field I have stated "between [Enter start date] and [Enter end date]" in order to allow me to view any date range.

Could anybody help me as I wish to display this range on a report.
 
When setting up the report, base the report on the query. When you run the report the query will prompt you to [Enter start date] and [Enter end date] before the report displays to the screen.
 
Create a text box on the report and set its control source to:

="Between " & [Enter start date] & " And " & [Enter end date]

I know, I know...it's easy LOL

[pipe]
Daniel Vlas
Systems Consultant
 
We all have to start somewhere.
Create a textbox in the heading of your report with a control source similar to this:
="Checks written between" & [Enter Start Date] & " and" & [Enter End Date]
This has worked for me.
 
Hi

I have used your code. Can you please tell me how to format the date to eg 1 January 2003.

Thanks in advance.

tee
 
Format(YourDate, "dd mmmm, yyyy")

[pipe]
Daniel Vlas
Systems Consultant
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top