PC Review


Reply
Thread Tools Rate Thread

Number formatting

 
 
Robert
Guest
Posts: n/a
 
      20th May 2004
Presently in my formula I am using

sngIncr = (Me.TL - Me.MIN) / 17

How should I modify the formula (or what command should I
use) that would round of the number so no decimals show.

Additionally, is there a way that I can round up to the
nearest number ending in 5. E.g. if the results of mu
formula is 3072, I would like 3075 to be displayed.

Your assitance is appreciated.

Rob

>-----Original Message-----
>When you click, the actual value of the field will show.

If you want the
>value to be in whole numbers, then enter it into the

field as whole numbers.
>If it is a calculated field, then you will have to round

the results.
>
>The format is simply a way to change the way a number

looks. The underlying
>number is still the same.
>
>Rick B
>
>
>"Rob" <(E-Mail Removed)> wrote in

message
>news:f55401c43dd8$3b0e9c20$(E-Mail Removed)...
>I have created a form and set the format of the fields to
>currency with a 0 decimal places.
>
>When I go into form view I see the value as set e.g.

$1,234
>When I click in the field the view changes to $1,234.8366
>
>What properties do I set so the display stays at $1,234
>
>Any helps would be appreciated.
>
>Rob
>
>
>.
>

..


 
Reply With Quote
 
 
 
 
John Vinson
Guest
Posts: n/a
 
      20th May 2004
On Thu, 20 May 2004 10:56:32 -0700, "Robert"
<(E-Mail Removed)> wrote:

>Presently in my formula I am using
>
>sngIncr = (Me.TL - Me.MIN) / 17
>
>How should I modify the formula (or what command should I
>use) that would round of the number so no decimals show.


sngIncr = Fix((Me.TL - Me.MIN) / 17)

>Additionally, is there a way that I can round up to the
>nearest number ending in 5. E.g. if the results of mu
>formula is 3072, I would like 3075 to be displayed.


sngIncr = 5*Fix((Me.TL - Me.MIN) / 85)


John W. Vinson[MVP]
Come for live chats every Tuesday and Thursday
http://go.compuserve.com/msdevapps?loc=us&access=public
 
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
Re: macro for converting number stored as "text" (or preceeded with ') to "number" formatting markx Microsoft Excel Programming 1 30th Jun 2006 12:14 PM
macro for converting number stored as "text" (or preceeded with ') to "number" formatting markx Microsoft Excel Programming 1 23rd Jun 2006 03:15 PM
Formatting a number (number -> string) Damir Dezeljin Microsoft Access 1 21st Apr 2005 07:31 PM
Formatting, formatting, formatting NickDangr Microsoft Excel Discussion 3 22nd Feb 2005 07:48 PM
formatting number as a number in c# Josh Harris Microsoft C# .NET 0 26th Feb 2004 10:30 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:41 PM.