PC Review


Reply
Thread Tools Rate Thread

Access Round() Function Question

 
 
=?Utf-8?B?SmFpX0ZyaWRheQ==?=
Guest
Posts: n/a
 
      1st Nov 2006
Morning everyone,

I have (hopefully) a quick query regarding using the Round() Function in a
query

I need to be able to round any value up to the nearest whole number , where
as the standard round funtion round up or down dependent on the closest whole
number.

So can you force it round up always?

Kindest Regards

Jai
 
Reply With Quote
 
 
 
 
=?Utf-8?B?SmFpX0ZyaWRheQ==?=
Guest
Posts: n/a
 
      1st Nov 2006
Thanks for the reply

However the Int() Function rounds down the number

example value 2.06 should be 3 but it returns 2

Jai

"Van T. Dinh" wrote:

> Use the Expression:
>
> - Int(-YourNumber) to round it up to the higher whole number.
>
> --
> HTH
> Van T. Dinh
> MVP (Access)
>
>
> "Jai_Friday" wrote:
>
> > Morning everyone,
> >
> > I have (hopefully) a quick query regarding using the Round() Function in a
> > query
> >
> > I need to be able to round any value up to the nearest whole number , where
> > as the standard round funtion round up or down dependent on the closest whole
> > number.
> >
> > So can you force it round up always?
> >
> > Kindest Regards
> >
> > Jai

 
Reply With Quote
 
Van T. Dinh
Guest
Posts: n/a
 
      1st Nov 2006
Did you use the 2 negative signs as I posted???

--
HTH
Van T. Dinh
MVP (Access)



"Jai_Friday" <(E-Mail Removed)> wrote in message
news:16CABA38-DAC3-4C3A-B890-(E-Mail Removed)...
> Thanks for the reply
>
> However the Int() Function rounds down the number
>
> example value 2.06 should be 3 but it returns 2
>
> Jai
>



 
Reply With Quote
 
Terry
Guest
Posts: n/a
 
      1st Nov 2006
Hi Jai,

Add 1 to result of Int()

Regards


"Jai_Friday" <(E-Mail Removed)> wrote in message
news:16CABA38-DAC3-4C3A-B890-(E-Mail Removed)...
> Thanks for the reply
>
> However the Int() Function rounds down the number
>
> example value 2.06 should be 3 but it returns 2
>
> Jai
>
> "Van T. Dinh" wrote:
>
>> Use the Expression:
>>
>> - Int(-YourNumber) to round it up to the higher whole number.
>>
>> --
>> HTH
>> Van T. Dinh
>> MVP (Access)
>>
>>
>> "Jai_Friday" wrote:
>>
>> > Morning everyone,
>> >
>> > I have (hopefully) a quick query regarding using the Round() Function
>> > in a
>> > query
>> >
>> > I need to be able to round any value up to the nearest whole number ,
>> > where
>> > as the standard round funtion round up or down dependent on the closest
>> > whole
>> > number.
>> >
>> > So can you force it round up always?
>> >
>> > Kindest Regards
>> >
>> > Jai



 
Reply With Quote
 
=?Utf-8?B?SmFpX0ZyaWRheQ==?=
Guest
Posts: n/a
 
      1st Nov 2006
That sorted it , those 2 negatives god blee em

Thanks once again

"Van T. Dinh" wrote:

> Use the Expression:
>
> - Int(-YourNumber) to round it up to the higher whole number.
>
> --
> HTH
> Van T. Dinh
> MVP (Access)
>
>
> "Jai_Friday" wrote:
>
> > Morning everyone,
> >
> > I have (hopefully) a quick query regarding using the Round() Function in a
> > query
> >
> > I need to be able to round any value up to the nearest whole number , where
> > as the standard round funtion round up or down dependent on the closest whole
> > number.
> >
> > So can you force it round up always?
> >
> > Kindest Regards
> >
> > Jai

 
Reply With Quote
 
=?Utf-8?B?VmFuIFQuIERpbmg=?=
Guest
Posts: n/a
 
      1st Nov 2006
I think you would get an incorrect result if the input is a whole number.

--
HTH
Van T. Dinh
MVP (Access)


"Terry" wrote:

> Hi Jai,
>
> Add 1 to result of Int()
>
> Regards
>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ROUND function syntax question (hopefully simple) Nick Xylas Microsoft Excel Discussion 2 1st Nov 2007 03:18 PM
RE: Access Round() Function Question =?Utf-8?B?VmFuIFQuIERpbmg=?= Microsoft Access 0 1st Nov 2006 09:55 AM
Round function question =?Utf-8?B?a2VubnlsYWk=?= Microsoft Access Getting Started 2 23rd Sep 2004 11:04 AM
Does Access have Round Function? Anny Microsoft Access 5 4th Aug 2003 11:29 AM
Round() function in Access 97? Wei Microsoft Access 2 25th Jul 2003 05:36 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:28 PM.