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

How do automate a report to query records for a specific time interval?

Status
Not open for further replies.

tdrBates

MIS
Nov 22, 2002
60
0
0
US
How do you automate a report to query records for a specific time interval?
 
1. You can use SQL expressions to calculate from-to dates and to filter the data directly in the database. This will be the easiest and fastest way within Crystal reports.
2. If you don't want to use SQL expressions and you don't have subreports you can create a shell report and add your report as a subreport. Obviously, your report should have some parameters for from-to. You can set those parameters with Crystal formulas created in the shell report.
3. If you have subreport you can create formulas and use them in the record selection formula. This will be slow since Crystal will download all the data and will filter it locally. Use this method if your tables are small and you do not expect to grow.
4. If you are going to automate the report most likely you are going to use some software to run it. Use the software to calculate and set the parameters' values. If you are looking for such software, please review this document for some basic options: including relative dates like from yesterday 4:00 PM to today 2:00 AM. These options are supported by our free edition available here:


Viewer and Scheduler for Crystal reports, SSRS and Dynamic Dashboards.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top