Currently I have a report that runs with entry of Start and End Dates. (prompts)
I would like to have the option to schedule the report and have it delivered via email to the users for current_date-1 for selected centers to automate.
Can this be done within the existing report or do I need to build a new report and how can I do this? Any help would be appreciated! Thanks in advance.
Thanks for replying, in the example above if I understand right, it will run a report for the default date unless the user manually puts a date in correct?
I needed to be scheduled to run automatically, each night, for the previous day. Right now the only way to run it for the previous day is to manually schedule it and select the previous date.
That is why I was looking to see if I can use current date-1 somewhere so that it automatically runs for that when report is scheduled daily.
Hi, you can try using subqueries to work with your input date.
How would you like to query previous day ?
Dates = Today - 1, Dates < Today-1, others ?
Cheers,
Rogerio
Okay,
the whole idea of my solution is going “slicing” the date object.
You need to build 3 queries :
The first one will return all your dates;
The second wll return all dates less than any dates from the first query, this will return all dates prior yesterday (including yesterday)
The third and last query will return the dates which are less or equal any dates from the second query AND dates that are greater or equal all dates from the second query.
I´m attaching a MsWord document showing you the screenshots of the queries
Cheers,
Rogerio Dates BOB Forum.doc (183.0 KB)
I don’t think I am doing it right. I am getting this error
unexpected error WIH 444444.
I tried again and I got some database error. When I revert back to the original report there are no errors. These errors are only coming after I make the changes