When I use this formula, I get
username TotalLines
mark 3001
lara 2545
lee 1005
-------
????
Can someone help me on how to get grand total?
thanks
--formula--
shared numberVar RowsThisRecord;
shared numberVar UserTotalRows;
shared numberVar TotalRows;
stringVar Result := '';
numberVar RowCount := int((len({MEDICAL_REPORT_OBJECT.MRO_TEXT}) / 65));
RowsThisRecord := RowCount;
TotalRows := TotalRows + RowsThisRecord;
UserTotalRows := UserTotalRows + RowsThisRecord;
numberVar i;
for i := 1 to RowCount do
(
Result := Result + mid({MEDICAL_REPORT_OBJECT.MRO_TEXT},(i*65) - 64, 65) + chr(10);
);
"Lines Recorded: " & RowsThisRecord & " " &"Total-:" & " " & TotalRows & chr(13) & Result;
username TotalLines
mark 3001
lara 2545
lee 1005
-------
????
Can someone help me on how to get grand total?
thanks
--formula--
shared numberVar RowsThisRecord;
shared numberVar UserTotalRows;
shared numberVar TotalRows;
stringVar Result := '';
numberVar RowCount := int((len({MEDICAL_REPORT_OBJECT.MRO_TEXT}) / 65));
RowsThisRecord := RowCount;
TotalRows := TotalRows + RowsThisRecord;
UserTotalRows := UserTotalRows + RowsThisRecord;
numberVar i;
for i := 1 to RowCount do
(
Result := Result + mid({MEDICAL_REPORT_OBJECT.MRO_TEXT},(i*65) - 64, 65) + chr(10);
);
"Lines Recorded: " & RowsThisRecord & " " &"Total-:" & " " & TotalRows & chr(13) & Result;