Hey all,
Using the information I could find here on the using IIF and HasData to make a report still function with an empty subreport, I seem to have it working. I also used this resource which may be useful to others: Hasdata method.
So I have my Sum of subreport data in the subreport footer. I have my IIf in the main report as such:
=IIf([Sub1].Report.HasData,[Sub1].Report.[txtSum],0)
The strangest thing is occurring. The first record in the report, it comes out correct. The second record of the report, it has the same number from the first record. The third record of the report, it has the number that should be on the second record, and so on.
I made the [txtSum] visible to see if that was the problem, but that calculated value is always coming out correct. It's very frustrating, because the next line down, my IIf statement is one record off (except the first one).
Can anyone point out where my error is? Or is some property of my text box not correct? A page break I missed?
Thanks for any insight
Using the information I could find here on the using IIF and HasData to make a report still function with an empty subreport, I seem to have it working. I also used this resource which may be useful to others: Hasdata method.
So I have my Sum of subreport data in the subreport footer. I have my IIf in the main report as such:
=IIf([Sub1].Report.HasData,[Sub1].Report.[txtSum],0)
The strangest thing is occurring. The first record in the report, it comes out correct. The second record of the report, it has the same number from the first record. The third record of the report, it has the number that should be on the second record, and so on.
I made the [txtSum] visible to see if that was the problem, but that calculated value is always coming out correct. It's very frustrating, because the next line down, my IIf statement is one record off (except the first one).
Can anyone point out where my error is? Or is some property of my text box not correct? A page break I missed?

Thanks for any insight