glthornton
Programmer
Hi, I'm using CR XI accessing a SQL server DB. I just designed a Committed Visit Note report for our clinic. In this report, I've got the Appt Date, Note Commit Date (from a subreport), Patient Name, # of Days (Datediff between Appt Date and Note Commit Date) and a few other fields.
The problem that I'm experiencing is a formula field: 'Total Commit Visits' that is placed in both the Details b Section and Report Footer Section do not always return the same ending value. The formula for this field is:
The above code works very well and as designed. But if you look at the attachment link ( you'll be able to see more of what I am describing. In the Report Footer Section, you can see that the value for this field was increased by 1 even though there are no additional entries. When I run the report for other date ranges, it matches perfectly. But what I just thought of, was that this only happens when the report indicates that all entries have a a commit date. If for some reason that not all entries have a commit date, then it works just fine. Does anyone have any ideas or suggestions?
Kind regards,
Glenn
The problem that I'm experiencing is a formula field: 'Total Commit Visits' that is placed in both the Details b Section and Report Footer Section do not always return the same ending value. The formula for this field is:
Code:
Shared NumberVar TotCommVisits;
IF {@CommitDT}= CDate('01/01/1900')
THEN TotCommVisits
ELSE TotCommVisits:=TotCommVisits+1;
The above code works very well and as designed. But if you look at the attachment link ( you'll be able to see more of what I am describing. In the Report Footer Section, you can see that the value for this field was increased by 1 even though there are no additional entries. When I run the report for other date ranges, it matches perfectly. But what I just thought of, was that this only happens when the report indicates that all entries have a a commit date. If for some reason that not all entries have a commit date, then it works just fine. Does anyone have any ideas or suggestions?
Kind regards,
Glenn