Solved

Format Percent

Posted on 2008-06-19
2
859 Views
Last Modified: 2012-08-13
I put an unbound field on the screen into which the user will enter a percent.  The percentage entered can have up to 3 significant digits.  Simple, right?

I put the text box on the screen and set the Format property to 'Percent'.  Initially I had the decimal places set to 3 and later changed it to 'Auto' but the behavior was the same in each case.

The issue is that I can't enter decimals.  it is quite possible that the percentage entered into this field will be something like 1.125 but when I enter 1.125 it shows as 112.50%.  My users are easily confused and I', sure they won't understand this.

I can set the property to 'Fixed' and decimals to 3.  That way when the user enters 1.125 that is what is displayed.  However, I thought it would be a nice touch and make the fiedl more intuitive if I showed the % sign.

Is there a way to set up a field with format 'Percent' such that when 1.125 is entered it shows as 1.125% (without any code manipulations for example: divide by 1000,  behind the scenes)
0
Comment
Question by:mlcktmguy
  • 2
2 Comments
 
LVL 22

Accepted Solution

by:
Kelvin Sparks earned 125 total points
Comment Utility
Access 2007 has introduced the feature you seek. In the version you have, its either enter the amount & process & display behind the scenes or leave oout the % display and have it just outside the text box as a label.


Kelvin
0
 
LVL 22

Expert Comment

by:Kelvin Sparks
Comment Utility
Just keep in mind if you store 1.25% as 1.25 and you have to use it in a formula or calculation to divide it by 100.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now