473,472 Members | 2,168 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Sum in Report is off by a penny!

My sum from my a report footer total at the end of a report is off by
a penny! The data totals coming from query are correct. Only the
calculations (=Sum([Total])doesn't add the penny. I've tried changing
the format and changing the decimal places but its not working. hourly
wage is 39.59. employee hour total: 316.72, 108.87, 277.13, 138.57,
138.57 total should be 979.86 but the total from sum total says
$979.85
Nov 12 '05 #1
7 4607
> My sum from my a report footer total at the end of a report is off by
a penny! The data totals coming from query are correct. Only the
calculations (=Sum([Total])doesn't add the penny. I've tried changing
the format and changing the decimal places but its not working. hourly
wage is 39.59. employee hour total: 316.72, 108.87, 277.13, 138.57,
138.57 total should be 979.86 but the total from sum total says
$979.85


See the following technical paper by Luke Chung - it may help explain why
different approaches to calculations in Access sometimes come up with different
answers:

When Access Math Doesn't Add Up
http://www.fmsinc.com/tpapers/math/index.html

--
Bruce M. Thompson, Microsoft Access MVP
bt******@mvps.org (See the Access FAQ at http://www.mvps.org/access)
NO Email Please. Keep all communications

within the newsgroups so that all might benefit.<<
Nov 12 '05 #2
Although for every truth in that paper there is something less than true,
and Luke does tend to not talk about the mistakes that he made that others
pointed out (the fact that he did not even pay attention to CDec, for
example) or his decision to not push for a fix (an intrinsic Decimal
datatype in VBA) when he had a good oportunity.

Every time I see this paper all I can do is sigh. Consulting must have been
too lucrative. :-(

MichKa

"Bruce M. Thompson" <bthmpson@big_NOSPAM_foot.com> wrote in message
news:vq************@corp.supernews.com...
My sum from my a report footer total at the end of a report is off by
a penny! The data totals coming from query are correct. Only the
calculations (=Sum([Total])doesn't add the penny. I've tried changing
the format and changing the decimal places but its not working. hourly
wage is 39.59. employee hour total: 316.72, 108.87, 277.13, 138.57,
138.57 total should be 979.86 but the total from sum total says
$979.85
See the following technical paper by Luke Chung - it may help explain why
different approaches to calculations in Access sometimes come up with

different answers:

When Access Math Doesn't Add Up
http://www.fmsinc.com/tpapers/math/index.html

--
Bruce M. Thompson, Microsoft Access MVP
bt******@mvps.org (See the Access FAQ at http://www.mvps.org/access)
NO Email Please. Keep all communications

within the newsgroups so that all might benefit.<<

Nov 12 '05 #3
So you have to buy the book to get the answer. (i smell a rat) I
cannot believe that all the versions have never been fixed. It makes
access worthless to its users when you can't perform a basic
calculation.

"Michael \(michka\) Kaplan [MS]" <mi*****@online.microsoft.com> wrote in message news:<3f********@news.microsoft.com>...
Although for every truth in that paper there is something less than true,
and Luke does tend to not talk about the mistakes that he made that others
pointed out (the fact that he did not even pay attention to CDec, for
example) or his decision to not push for a fix (an intrinsic Decimal
datatype in VBA) when he had a good oportunity.

Every time I see this paper all I can do is sigh. Consulting must have been
too lucrative. :-(

MichKa

"Bruce M. Thompson" <bthmpson@big_NOSPAM_foot.com> wrote in message
news:vq************@corp.supernews.com...
My sum from my a report footer total at the end of a report is off by
a penny! The data totals coming from query are correct. Only the
calculations (=Sum([Total])doesn't add the penny. I've tried changing
the format and changing the decimal places but its not working. hourly
wage is 39.59. employee hour total: 316.72, 108.87, 277.13, 138.57,
138.57 total should be 979.86 but the total from sum total says
$979.85


See the following technical paper by Luke Chung - it may help explain why
different approaches to calculations in Access sometimes come up with

different
answers:

When Access Math Doesn't Add Up
http://www.fmsinc.com/tpapers/math/index.html

--
Bruce M. Thompson, Microsoft Access MVP
bt******@mvps.org (See the Access FAQ at http://www.mvps.org/access)
> NO Email Please. Keep all communications

within the newsgroups so that all might benefit.<<

Nov 12 '05 #4
> Although for every truth in that paper there is something less than true,
and Luke does tend to not talk about the mistakes that he made that others
pointed out (the fact that he did not even pay attention to CDec, for
example) or his decision to not push for a fix (an intrinsic Decimal
datatype in VBA) when he had a good oportunity.


Thanks, MichKa. I hadn't really thought about that, unfortunately.

--
Bruce M. Thompson, Microsoft Access MVP
bt******@mvps.org (See the Access FAQ at http://www.mvps.org/access)
NO Email Please. Keep all communications

within the newsgroups so that all might benefit.<<
Nov 12 '05 #5
Who says you need to buy a book?

There may well have been other, less selfish reasons that were not
communicated to me, but Luke did tell me at a face-to-face meeting that it
"was not his job to fix Access bugs" and that is was Microsoft's job. He was
not convinced by my plea to make the case on the basis of the many customers
FMS had serviced with issues and did not want to pursue the issue.
--
MichKa [MS]
NLS Collation/Locale/Keyboard Development
Globalization Infrastructure and Font Technologies

This posting is provided "AS IS" with
no warranties, and confers no rights.

"aagarcia" <pd*******@satx.rr.com> wrote in message
news:70*************************@posting.google.co m...
So you have to buy the book to get the answer. (i smell a rat) I
cannot believe that all the versions have never been fixed. It makes
access worthless to its users when you can't perform a basic
calculation.

"Michael \(michka\) Kaplan [MS]" <mi*****@online.microsoft.com> wrote in

message news:<3f********@news.microsoft.com>...
Although for every truth in that paper there is something less than true, and Luke does tend to not talk about the mistakes that he made that others pointed out (the fact that he did not even pay attention to CDec, for
example) or his decision to not push for a fix (an intrinsic Decimal
datatype in VBA) when he had a good oportunity.

Every time I see this paper all I can do is sigh. Consulting must have been too lucrative. :-(

MichKa

"Bruce M. Thompson" <bthmpson@big_NOSPAM_foot.com> wrote in message
news:vq************@corp.supernews.com...
> My sum from my a report footer total at the end of a report is off by > a penny! The data totals coming from query are correct. Only the
> calculations (=Sum([Total])doesn't add the penny. I've tried changing > the format and changing the decimal places but its not working. hourly > wage is 39.59. employee hour total: 316.72, 108.87, 277.13, 138.57,
> 138.57 total should be 979.86 but the total from sum total says
> $979.85

See the following technical paper by Luke Chung - it may help explain why different approaches to calculations in Access sometimes come up with

different
answers:

When Access Math Doesn't Add Up
http://www.fmsinc.com/tpapers/math/index.html

--
Bruce M. Thompson, Microsoft Access MVP
bt******@mvps.org (See the Access FAQ at http://www.mvps.org/access)
>> NO Email Please. Keep all communications
within the newsgroups so that all might benefit.<<

Nov 12 '05 #6
Just to piggy back on this thread...

This expression (in a report):

=Format(Sum(([Score]*[PercentOfGrade])*([ModuleCats]/[TotalCats])/2),"0.00")

Occasionally produces differences of 1/000th in Access XP compared to what
it does in Access 97. Not very often though.

e.g. 82.45 (97) becomes 82.44 (in XP).

The difference (so far) seems to only ever be 1/100th and always down (from
97 to XP).

Score and ModuleCats are byte numbers, TotalCats is an integer,
PercentOfGrade is a double and is always 1 or < 1. PercentOfGrade is usually
to one decimal place. But occasionally to 4 decimal places. (i.e. usually .5
or .2, sometimes 0.0625)

Any ideas folks? I'm assuming this is some change to how Access does
rounding. But the other change to the system is from NT clients to XP
clients.

Cheers, Mike

"aagarcia" <pd*******@satx.rr.com> wrote in message
news:70**************************@posting.google.c om...
My sum from my a report footer total at the end of a report is off by
a penny! The data totals coming from query are correct. Only the
calculations (=Sum([Total])doesn't add the penny. I've tried changing
the format and changing the decimal places but its not working. hourly
wage is 39.59. employee hour total: 316.72, 108.87, 277.13, 138.57,
138.57 total should be 979.86 but the total from sum total says
$979.85

Nov 12 '05 #7
Well, just done some investigating. This was my 97 expression:

=Format(Sum(([Score]*[PercentOfGrade])*([ModuleCats]/[TotalCats])/2),"0.00")

on converting to XP I got

=Format(Sum(([Score]*[PercentOfGrade])*([ModuleCats]/[TotalCats])/2),"Fixed"
)

Nice of Access to do that without asking. Why? Anything else it might have
changed behind my back? The back end data file is still in Access 97 format
by the way, this is just the front end that's been converted.

Mike
"Mike MacSween" <mi******************@btinternet.com> wrote in message
news:3f***********************@news.aaisp.net.uk.. .
Just to piggy back on this thread...

This expression (in a report):

=Format(Sum(([Score]*[PercentOfGrade])*([ModuleCats]/[TotalCats])/2),"0.00")
Occasionally produces differences of 1/000th in Access XP compared to what
it does in Access 97. Not very often though.

e.g. 82.45 (97) becomes 82.44 (in XP).

The difference (so far) seems to only ever be 1/100th and always down (from 97 to XP).

Score and ModuleCats are byte numbers, TotalCats is an integer,
PercentOfGrade is a double and is always 1 or < 1. PercentOfGrade is usually to one decimal place. But occasionally to 4 decimal places. (i.e. usually ..5 or .2, sometimes 0.0625)

Any ideas folks? I'm assuming this is some change to how Access does
rounding. But the other change to the system is from NT clients to XP
clients.

Cheers, Mike

"aagarcia" <pd*******@satx.rr.com> wrote in message
news:70**************************@posting.google.c om...
My sum from my a report footer total at the end of a report is off by
a penny! The data totals coming from query are correct. Only the
calculations (=Sum([Total])doesn't add the penny. I've tried changing
the format and changing the decimal places but its not working. hourly
wage is 39.59. employee hour total: 316.72, 108.87, 277.13, 138.57,
138.57 total should be 979.86 but the total from sum total says
$979.85


Nov 12 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

77
by: nospam | last post by:
Reasons for a 3-tier achitecture for the WEB? (NOTE: I said, WEB, NOT WINDOWS. DON'T shoot your mouth off if you don't understand the difference.) I hear only one reason and that's to switch a...
65
by: Pmb | last post by:
I'm confused as to what the compiler error message I'm getting is refering to. Can someone take a gander and let me know what I did wrong? The program is below. When I compile it I get the...
3
by: CSDunn | last post by:
Hello, I have a situation with MS Access 2000 in which I need to display report data in spreadsheet orientation (much like a datasheet view for a form). If you think of the report in terms of what...
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...
6
by: Bob Alston | last post by:
I am looking for Access reporting add-in that would be easy to use by end users. My key focus is on selection criteria. I am very happy with the Access report writer capabilities. As far as...
35
by: eyoung | last post by:
I call a function that takes the unit price and quantity ordered to create an amount...it looks something like this. function calculateCost() { quantity=document.RFO.quantity.value;...
20
by: javaman90 | last post by:
i am trying to make a penny pitch game. the sum is returned at the end of the game and the player has 2 options: toss and quit. the program does this when the toss option is clicked: generates two...
6
by: Dave | last post by:
On my form I have combo boxes. These combo boxes, after updating them, populate respective listboxes that are located below the combo boxes on the same form. I am trying to use a "generate...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.