blindlemonray
Technical User
Hi, I have two total on seperate sub reports and then use them in a calculation with the main report which works fine when there is data in both values. One of the values sometimes has no data and it then creates an error
I have read many of the posts re the above and cannot get it to work.
The two I have tried are
and also
If anyone can give me some pointers or tell me where I am going wrong it would be much appreciated
I have read many of the posts re the above and cannot get it to work.
The two I have tried are
Code:
=sub1.Report!Hours-IIf(sub2.Report!Sum.HasData,sub.Report!Sum,0)
and also
Code:
=sub1.Report!Hours-Nz(sub2.Report!Sum,0)
If anyone can give me some pointers or tell me where I am going wrong it would be much appreciated