Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA 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 October 18th, 2004, 03:58 PM
Authorized User
Join Date: Sep 2003
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default Can't Get Percent Format to Work Properly


I have a field in a form named Percent. It is the percentage for acceptable completion of a service task. I have formatted it as percentage in the properties box for both the form and the table properties. It is my understanding if I want 100 percent, I enter 1 and I should get 100%, which I do. However, if I want 50 percent, I should be able to obtain that number by entering .5, but when I enter .5, I get zero (0%). If, however, I enter any number between .5 and 1 (.51 for example) I get 100%. For some reason, I cannot get a percentage amount under 100%.

Thanks for your help.


Old November 17th, 2004, 10:37 PM
Registered User
Join Date: Nov 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts

look at your field property and how you set your Scale set it to two .so it will now store .5 as 50%

Old November 19th, 2004, 09:15 AM
Friend of Wrox
Join Date: Jun 2003
Posts: 1,151
Thanks: 2
Thanked 14 Times in 14 Posts
Send a message via ICQ to SerranoG Send a message via AIM to SerranoG

Look at the property of the field and make sure that the number of decimal places you want it set to one or more. If it's set to zero, it's going to round off to either 0 or 1.

Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division

Similar Threads
Thread Thread Starter Forum Replies Last Post
Doesn't work properly for multiple file arguments. sbubendorf VBScript 7 September 20th, 2007 08:52 AM
Link Button does not work properly nitinp ASP.NET 2.0 Basics 0 November 9th, 2006 06:02 AM
Stored procedures won't work properly... eBilyboy SQL Server 2000 1 December 12th, 2005 11:25 AM
percent of subtotal mtlpp Excel VBA 0 May 14th, 2005 10:09 AM
Active links format doesn't work?? Ruben@Adafi Dreamweaver (all versions) 5 September 2nd, 2004 02:30 AM

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