Solved

Field on report won't format as currency

Posted on 2013-11-26
3
968 Views
Last Modified: 2013-11-26
I have a field on a report that will not let me format it as currency.

I do have the format set as currency.  The field's control source, coming from a query, in the query is set to be formatted as currency but it still won't format as currency on the report.

???
0
Comment
Question by:SteveL13
3 Comments
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 39678046
from the description you posted above, we need to see the db why it is not working.

upload a copy of the db
0
 
LVL 47

Accepted Solution

by:
Dale Fye (Access MVP) earned 500 total points
ID: 39678064
Can you provide the SQL for the Reports recordsource?

If the field in question uses the NZ([yourField], 0) function in the query, then the query will return a string, not a numeric value, which may be preventing it from formatting as Currency.  If this is the case, modify the query to something like:

Val(NZ([yourField], 0))

Once you have run the query, it should recognize that field as numeric and allow formatting as Currency.
0
 

Author Comment

by:SteveL13
ID: 39678116
Yes, I was using NZ and the suggestion...

Val(NZ([yourField], 0))

is working perfectly.

Just as a side note, in the design of the report I have the fields lining up perfectly right-justified vertically but they are off by a space or two and I'm having to manipulate them to line up.

--Steve
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

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…
It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
Familiarize people with the process of utilizing SQL Server functions 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 Ac…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

860 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