473,408 Members | 2,888 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,408 software developers and data experts.

report+truncate

hi,
I have in my report SUBTOTAL=Sum([AmountPaid]), then TAX=[SUBTOTAL]*0,22 and
TOTAL=[SUBTOTAL]+[TAX]
The SUBTOTAL is 6029,80. I sholud get the following values for TAX=1326,556
and for TOTAL=7356,356. I don't need the third decimal and the access
returns me folowing TAX=1326,56 and TOTAL=7356,36 but it should be for
TAX=1326,55 and TOTAL=7356,35.
Please help me, I know it's something with truncate but I'm not coming
along.
Thanks very much
J.J.
Nov 13 '05 #1
1 1444
If the value for tax is 1325,556 and you shorten it to display two decimals,
it will round to 1325,56. If you are wanting to truncate instead try:

TAX=Int([SUBTOTAL]*0,22*100)/100
or
TAX=Int([SUBTOTAL]*22)/100

--
Wayne Morgan
Microsoft Access MVP
"J.J." <no****@jj.com> wrote in message news:ce**********@ls219.htnet.hr...
hi,
I have in my report SUBTOTAL=Sum([AmountPaid]), then TAX=[SUBTOTAL]*0,22
and
TOTAL=[SUBTOTAL]+[TAX]
The SUBTOTAL is 6029,80. I sholud get the following values for
TAX=1326,556
and for TOTAL=7356,356. I don't need the third decimal and the access
returns me folowing TAX=1326,56 and TOTAL=7356,36 but it should be for
TAX=1326,55 and TOTAL=7356,35.
Please help me, I know it's something with truncate but I'm not coming
along.
Thanks very much
J.J.

Nov 13 '05 #2

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

Similar topics

3
by: GorDon | last post by:
Hi, I have a report based on a query. The query grabs a memo field from my main table, yet when I display the memo field in the report it truncates the memo field (the field needs to hold more...
6
by: jao | last post by:
My company has a product in beta which uses Postgres 7.4.3. We expect to have a code freeze for our 1.0 product in March 2005. I'd really like to use Postgres 8.x in our 1.0 product. We're...
5
by: Sean | last post by:
Hi... I want to use the macro/sendobject (or any other procedure) to send the contents of a table (very small, ~5 rows/columns) as an Outlook message body, not as an attachment. Access 2000 will...
5
by: J-P-W | last post by:
I have some code, from this group (many thanks) that sends an attachment to an email. The following: Dim objNewMail As Outlook.MailItem Dim golApp As...
8
by: Wayne | last post by:
My supervisor performs the following steps to generate an email notifying recipients of new problem reports: 1) Generate an Access report containing the columnar data and export it to a .rtf...
17
by: rdemyan | last post by:
My app creates a building report. My users have requested that I provide functionality to e-mail these "building reports" to building managers once a month. So assuming that I have the...
7
by: midlothian | last post by:
Does using CStr on a memo field truncate it to 255 characters? Seems like this is happening with some data in my tables. Is there a way around this?
7
by: microsoft access | last post by:
Is there a way to skip the format selection when e-mailing reports? Maybe in the VB coding? I want them to always be sent in an HTML format. Any information is helpful. Thanks.
8
by: orajit | last post by:
Hello, I have one concern , I have one table that contains huge data. I have created one procedure inside that procedure I am truncating that table . It takes very long time to execute that....
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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
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
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,...
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.