i>=reccount()
. lcScope = "ALL" && or "NEXT 1 " or "WHILE Whatever" etc... COUNT &lcScope TO iTotal REPORT FORM &lcScope * now the report expression uses i>=iTotalIn 9, you don't need to do this <g>. You can use ReportListener.CommandClauses.RecordTotal to get the right answer...