November 20th, 2013, 09:24 AM
Error Message: A Loop was evaluated more than the maximum....
I have CR 2008 and updated the data source location of the report since we are using a new version of the database. I was running this report when I got this error message --> "A loop was evaluated more than the maximum number of times allowed". And it's highlighting the "for" below. Can you please help me figured out how to fix it? You're help is highly appreciated
//output := cstr(test) + " ";
for n:= 1 to ubound(audit) do
output:= output + chr(13) + cstr(audit[n]) + ' - ' + cstr(dtrge_strt[n],'dd-MMM-yyyy') + ' - ' + cstr(dtrge_end[n],'dd-MMM-yyyy');
Last edited by GremlinSA; November 21st, 2013 at 12:18 AM.
Reason: added code tags..
November 20th, 2013, 02:26 PM
Re: Error Message: A Loop was evaluated more than the maximum....
Search for Option Loop statement
The default are 100,000 iterations
Also, check your loop logic
Last edited by jggtz; November 20th, 2013 at 02:32 PM.
... If your problem is fixed don't forget to mark your threads as resolved using the Thread Tools menu ...
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.