Problem with total not being calculated

Destiny

Registered User.
Local time
Today, 11:53
Joined
Aug 8, 2008
Messages
10
Hello guys!

I hope that maybe someone here will be able to help me as I can't get one thing to work on my reports.

I will try to describe it in few words. I have a database in which I have enquiries. Each enquiry can be either a potential or a sale - potential, we quoted for something, sale - the quotation has been accepted, we will proceed with some work for them. I need to pull out sales and potentials for each month (or a selected month). Potentials are easy. But with sales I have 3 fields for payments (each with data obviously). And each of them can be made in a different month or some of them may be paid in the same month.

I do it with 3 querries then - each is checking the different payment (1st payment, 2nd payment etc) and whether it is in selected month. From there I have 3 reports based on these 3 queries. So I have report with sales with 1st payment in selected month, then report with sales where 2nd payment has been made in selected month, etc.
Now, I created a new report that would display as subreports those 3 reports and give the total amount paid in selected month. Each of subreports obviously has the total for it but my formula for total of these 3 sums displays an error :(

I was using this formula to display the all total in a text box:
=Sum([Payment1]![1st Payment])+Sum([Payment2]![2nd Payment])+Sum([Payment3]![3rd Payment])

Error I get is like this: #Error

Nothing else.

All help will be much appriciated.
THANKS!
 
Try:

=Sum([Payment1]![1st Payment])+([Payment2]![2nd Payment])+([Payment3]![3rd Payment])
 
Still the same :(

What difference is between the ! and . in this statement?
 
Could anyone please have a look on this and see if they could help? Thanks!
 
Use total in your subreport and refer to that field in that report
 
Ha! I did it :)
Thanks for all the suggestions anyway but I did it slightly different.

I made a union of these 3 queries and then made a report from that. Simple as that. I have no idea why the sum didnt want to work the way I was doing it earlier?
Nevermind now :)

Thanks again!
 

Users who are viewing this thread

Back
Top Bottom