Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 1st, 2005, 02:14 AM
Authorized User
 
Join Date: Jan 2005
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default format currency

I am new to Access. I am familiar to fox pro
In Access report How can I format currency like
12,33,450.00
I had used format() but it groups in 3 digits.
I have even changed regional setting digit grouping to 2
even then it doesn't helps.
In fox pro there is function Transform() by which desired result can be obtained
Is any such function available in Access or vb
or any code to be written for this
Please help

civa

 
Old November 1st, 2005, 02:46 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 564
Thanks: 0
Thanked 4 Times in 4 Posts
Default

If memory serves correct (which seeing as I am at midnight it probably doens't!!)

myNumber = format(myNumber, "##,##,###.##")

Or some derivative of that.

HTH

Mike

Mike
EchoVue.com
 
Old November 1st, 2005, 03:02 AM
Authorized User
 
Join Date: Jan 2005
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i have tried doesn't works groups in 3 digits

civa

 
Old December 16th, 2005, 03:50 AM
Registered User
 
Join Date: Dec 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Try this:

&&\,&&\,&&&\.&&

I'm not familiar with this currency format- but this will have a group of three to the left of the decimal, followed by a group of two, followed by a group of (the rest of the numbers).

Phil.






Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set a value in datagrid to currency format? jhansib4u ADO.NET 0 December 12th, 2007 01:43 AM
Currency Format kdkcchoco ASP.NET 1.0 and 1.1 Professional 1 March 29th, 2007 08:13 AM
datagridview currency format rounds off cents TomH VB Databases Basics 2 September 12th, 2006 11:24 AM
Currency Format heerajee Pro PHP 2 June 5th, 2006 02:24 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.