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

Subreport Link using formula

Status
Not open for further replies.
Mar 19, 2003
57
US
Crytstal Report 9

I have a group section in my main report. I added a subreport in the header section and linked the two reports using a formula. Both reports have this same formula. Everything works fine, however, the reports take 20 minutes to run. Is there anything I can do to speed up the process without creating a stored procedure on the database or creating a SQL expression?

Here is the formula I am using:

Numbervar minextract := minute({acdgroupstats.d_time});
Stringvar amdmins;

if minextract <= 15 then amdmins := time(hour({acdgroupstats.d_time}),00,00) & "^" & time(hour({acdgroupstats.d_time}),29,00) else
if minextract >= 30 then amdmins := time(hour({acdgroupstats.d_time}),30,00) & "^" & time(hour({acdgroupstats.d_time}),59,00);

amdmins;


 
Subreports are slow...

You'll need a Crystal SQL Expression or a View or an SP on the database.

Why wouldn't you want to use a SQL expression?

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top