Solved

Format field in Access 2003 query

Posted on 2010-08-17
2
398 Views
Last Modified: 2013-11-27
I have a field in an Access query

Interest: IIf([Interested]="Yes","Yes",([Percent]))

Interested is a text field and Percent is a field I want formatted like a percent. It is set up that way in the table but when put in this formula shows up as .0001 instead of 1%

how do I get Percent to format correctly
0
Comment
Question by:Pdeters
  • 2
2 Comments
 
LVL 4

Accepted Solution

by:
Scanman999 earned 500 total points
ID: 33456526
.0001 is in fact 0.01%

If you want it with decimals :
Interest: IIf([Interested]="Yes","Yes",format([Percent],"0%"))

or with 2 decimals :
Interest: IIf([Interested]="Yes","Yes",format([Percent],"0.00%"))

Cheers,
Andy
0
 
LVL 4

Expert Comment

by:Scanman999
ID: 33456543
.0001 is in fact 0.01%

If you want it WITHOUT decimals :
Interest: IIf([Interested]="Yes","Yes",format([Percent],"0%"))

or with 2 decimals :
Interest: IIf([Interested]="Yes","Yes",format([Percent],"0.00%"))

Cheers,
Andy
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
sql help 8 55
Access sql to sql server express 10 32
Oracle Query - Return results based on minimum value 8 29
Criteria for Date for DCount 4 16
Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

813 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