Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
|
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 March 1st, 2004, 11:44 AM
Authorized User
 
Join Date: Dec 2003
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default How do you right-align currency set to no decimals

I have text boxes on a form that show currency set to no decimals. The spaces reserved for the decimals show to the right of the amount. Is there any way to eliminate the empty space to the right of the amount so there is no space gap on the right? Thanks. Jim
 
Old March 1st, 2004, 12:17 PM
Authorized User
 
Join Date: Dec 2003
Posts: 81
Thanks: 0
Thanked 0 Times in 0 Posts
Default

In design mode, select the control and format it to right align

J

 
Old March 1st, 2004, 04:18 PM
Authorized User
 
Join Date: Dec 2003
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default

That doesn't work when you round to no decimals.
 
Old March 1st, 2004, 06:42 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 308
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If you don't intend to do any calculations with the numbers, one possible solution would be to make them into a string - for example, having:
YourMoney: "$" & Int(TheMoneyField)
in the query
then right aligning the textbox that it goes into.



I am a loud man with a very large hat. This means I am in charge
 
Old March 1st, 2004, 07:18 PM
Authorized User
 
Join Date: Dec 2003
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks. That gives me something to think about. Jim
 
Old March 2nd, 2004, 02:46 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 129
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I don't understand the problem. I use Access97 and currency with no decimals is right aligned.

Clive Astley
 
Old March 2nd, 2004, 07:59 PM
Authorized User
 
Join Date: Dec 2003
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default

 _____________
 | $100,000 ^|
 ------------^-
                  Space between the last zero and the right side of the text box.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Decimals in charts chetuzz2 Excel VBA 0 July 29th, 2008 02:30 AM
How to set a value in datagrid to currency format? jhansib4u ADO.NET 0 December 12th, 2007 01:43 AM
EASY Q: Left-Align and Right-Align DIV? panuvin ASP.NET 1.0 and 1.1 Basics 0 December 16th, 2006 02:02 AM
more decimals fskilnik Dreamweaver (all versions) 2 September 29th, 2005 07:05 AM
Displaying decimals in C# alfonz ASP.NET 1.0 and 1.1 Basics 3 September 20th, 2004 01:51 PM





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