Solved

Format field in Access 2003 query

Posted on 2010-08-17
2
418 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
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…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

726 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