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!

Changing the date

Status
Not open for further replies.

tinmar

Technical User
Mar 24, 2003
55
HK
I am currently running a report which includes say today, and I have made it schedule. Im trying to schedule it to run each day at a certain time, how would I make the report auto change the date for the next day, eg today being the 2003-06-03, my report tomorrow will auto run the 2003-06-04
 
To get the data in the report to change, use a date selection field compared to the function today.

This will then filter the data on the report to only show the current date.

You can either include the date field as a column on the report, or include the today field in the report header

 
Tinmar,
Be careful if you are filtering a lot of data - use of today() or now() in the impromptu filter can result in the filtering being done on the PC, rather than the DB. You can check this by looking at the SQL generated - no date = local processing. I found that using a prompt in the filter and passing the current date from a macro in scheduler maximises the speed.
HTH,
Lex
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top