>for i=1 to m.lCount > lnSum = evaluate('curtemp.' + sumfields[m.i,1]) + evaluate('m.'+sumfields[m.i,1]) > replace ('curtemp.' + sumfields[m.i,1]) with m.lnSum in curtemp >endfor>
*---- Summarizing should be here for i=1 to m.lCount lnSum = evaluate('curtemp.' + sumfields[m.i,1]) + evaluate('m.'+sumfields[m.i,1]) try replace ('curtemp.' + sumfields[m.i,1]) with m.lnSum in curtemp llReplace = .t. catch to oError when .t. =messagebox("Error replacing!" + chr(13) + ; oError.Message + chr(13) + ; "Error #:"+Transform(oError.ErrorNo)+chr(13)+; "Line #:"+Transform(oError.LineNo)+chr(13)+; "Error #:"+Transform(oError.LineContents),48,"Error") llReplace = .f. finally if type(m.oError)="O" and m.oError.ErrorNo = 39 && Numeric overflow * we need to find maximum allowed for the field and use it instead of a sum messagebox("lnSum = " + transform(m.lnSum) + " for field " + sumfields[m.i,1]) endif endtry endforwhich gives me unhandled error 11. How can I solve this problem?