Solved

Format field in Access 2003 query

Posted on 2010-08-17
2
382 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
Comment Utility
.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
Comment Utility
.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

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

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.
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…

763 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

8 Experts available now in Live!

Get 1:1 Help Now