Re: Change value to an integer on a form
- From: "John Spencer" <spencer@xxxxxxxxx>
- Date: Tue, 20 Feb 2007 08:07:53 -0500
Or perhaps reversing the functions. Since, I interpreted the posting as
saying the user wanted to round down the sum versus sum the rounded down
values.
Int(Sum([Field1]))
--
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
..
"Allen Browne" <AllenBrowne@xxxxxxxxxxxxxx> wrote in message
news:%23dqYSdKVHHA.5100@xxxxxxxxxxxxxxxxxxxxxxx
Try a text box bound to:
=Sum(Int([Field1]))
Substitute your field name for Field1.
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"crazyj0202" <u31880@uwe> wrote in message news:6e10bb5b0cac7@xxxxxx
I have a form that has detailed human resource info. I have a field that
is
in increments of .25. The sum can be x.00, x.25, x.50,and x.75. (x
bring
any number) Unless the increments =1 I do not want it to sum on a
particular
field on a report.
All I want is to always change the number to an integer (round down).
I.e,
if the sum on the report is 4.25, 4.50 or 4.75 I want another field to
take
that number and round down to 4. I hope this can be done.
I still want the 4.25 to show on the report, but just another box that
was
created just for the purpose of putting that number or whatever number
rounded down to the whole number.
(FYI the source of the textbox is =sum[sumofsar], I thought that if I put
dim
text86 as integer on form open and then I copied the same =sum[sumofsar],
into the source that it would work but it did not)
Thanks
.
- Follow-Ups:
- Re: Change value to an integer on a form
- From: Allen Browne
- Re: Change value to an integer on a form
- References:
- Change value to an integer on a form
- From: crazyj0202
- Re: Change value to an integer on a form
- From: Allen Browne
- Change value to an integer on a form
- Prev by Date: RE: Assigning Values to a Control Box
- Next by Date: RE: Problem hiding fields
- Previous by thread: Re: Change value to an integer on a form
- Next by thread: Re: Change value to an integer on a form
- Index(es):
Relevant Pages
|