[AccessD] Rounding Currency

Mark Boyd MarkBoyd at McBeeAssociates.com
Fri May 7 14:34:11 CDT 2004


Thanks Gustav.  The Round function seemed to work perfectly.

Mark

-----Original Message-----
From: Gustav Brock [mailto:gustav at cactus.dk] 
Sent: Friday, May 07, 2004 2:32 PM
To: Access Developers discussion and problem solving
Subject: Re: [AccessD] Rounding Currency

Hi Mark

> A user has asked me to remove the "cents" from several currency
fields.
> Instead of reformatting the fields, I'd like to round the amounts to
the
> nearest dollar.  Is there a query I can run that will round in this
> manner?

The quick and dirty (Access 2000+) is

  Round([Amount], 0)

It's a little buggy.
If you need serious rounding, visit:

  http://www.xbeat.net/vbspeed/c_Round.htm

and browse for Round15.

/gustav

-- 
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com

---------------------------------------------------------------------------

Note: This message and any attachments are intended only for the use of the individual or entity to which it is addressed and may contain information that is
privileged, confidential, and exempt from disclosure under applicable law.  If the reader of this message is not the intended recipient, or the employee or
agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this
communication is strictly prohibited.  If you have received this communication in error, please notify the sender by replying to this message, and then delete it from your system.

---------------------------------------------------------------------------




More information about the AccessD mailing list