CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2013

    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');
    maximum({?Date Range})
    Last edited by GremlinSA; November 21st, 2013 at 12:18 AM. Reason: added code tags..

  2. #2
    Join Date
    Jul 2005

    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 ...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.