473,397 Members | 1,974 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Report and Sum function

418 256MB
This is rather frustrating for me. In one report I have a total figure that sums two other figures.

([Budget]) + ([Change])

then, I have Sum([Budget]) +Sum([Change])

In one report the second formula works fine. But in the other formula it gives a very high number which is incorrect and I don't know why. Even though the first one is working correctly in both the reports.

Can someone explain? and/or help? thanks.
May 4 '09 #1
6 1823
Denburt
1,356 Expert 1GB
You could add a field Sum([Budget]) and a field for Sum([Change]) and it may reveal a bit more information on why it could be failing. you might also try Sum([Budget]+[Change]) and see if that resolves your issue although essentially I would think that under most circumstances you should arrive at the same result.

Are you using this with any running sums?
May 4 '09 #2
MNNovice
418 256MB
[Budget] = field
[Change] = field
[Budget] + [Change] = Total

Sum([Budget]+[Change]) = Grand Total

There are no running sums involved. The funny thing is that in one report (which is based on some tables), the formula works just fine. But the report I am working on now, is based on queries. May be that has something to do with the erroneous results. Now I am trying to learn how to do formula in a query. Not having much luck there - but I am trying.

Thanks.
May 4 '09 #3
ChipR
1,287 Expert 1GB
I have never been able to combine totals, instead I have used something like:
txtSumOfBudget = Sum([Budget])
txtSumOfChange = Sum([Change])
txtGrandTotal = [txtSumOfBudget] + [txtSumOfChange]
May 4 '09 #4
Denburt
1,356 Expert 1GB
Using tables or queries on a report should still yield the same results. Did you try adding a field for summing each individually then you can add the figures and see if each field is achieving the results it should? That will probably give you some more insight into the problem.
May 4 '09 #5
MNNovice
418 256MB
ChipR & Denburt
My problem has been why it would work on one and not the other? I am yet to figure it out. Thanks for your suggestions and tips.
May 4 '09 #6
NeoPa
32,556 Expert Mod 16PB
@MNNovice
That's not something we can really know without seeing the two items M.

We can guess, but as you've not actually told us of any differences (other than tables versus queries, which as Den says is no real difference) there's little we can do I'm afraid.
May 7 '09 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Nathan Bloomfield | last post by:
Does anyone know if there is any documentation which relates to Access2k + ? or can anyone help adjust the code? I am having trouble converting the DAO references. TITLE :INF: How to...
9
by: Colin McGuire | last post by:
Hi, I have an report in Microsoft Access and it displays everything in the table. One column called "DECISION" in the table has either 1,2, or 3 in it. On my report it displays 1, 2, or 3. I want...
3
by: Melissa | last post by:
What specifically causes the Format event of a report's section to fire? Thanks! Melissa
0
by: Rahul Chatterjee | last post by:
Hello All I have designed a dotnet application using VB which basically takes a selection and passes value to a crystal report which in turn passes the value to a Stored procedure. After the...
2
by: rinmanb70 | last post by:
I have a QBF form/query and a report from the QBF that shows the results of the QBF. I would like to show the criteria on the report that was used in the QBF to get the info on report. I can't...
0
by: kamboj.shalabh | last post by:
Hi to all, Well, I am working on dotnet 2005 with crystal reports 10 and backend as sql server. I am facing a problem while loading a report. Actually the issue is, when I load report it takes...
1
by: AMD_GAMER | last post by:
Hi, I am trying to print address labels. I have a form which asks for the user to input the first name, middle initial, and last name. On the button click to print the label, I have an event...
3
by: jambonjamasb | last post by:
Hi I have two tables: email_tbl Data_table Data table is is used to create a Form Data_form
12
by: Studiotyphoon | last post by:
Hi, I have report which I need to print 3 times, but would like to have the following headings Customer Copy - Print 1 Accounts Copy - Print 2 File Copy -Print 3 I created a macro to...
11
by: Gord | last post by:
When I open a certain report, it runs some code that generates the records that will be displayed in that report. This works fine. When I go to print preview the report it appears that the code...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.