[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Access ADP Report fields won't format

Posted on 2012-04-01
2
Medium Priority
?
324 Views
Last Modified: 2012-06-22
I have been tasked with maintaining an existing access ADP file with SQL server 2005 backend.

The client wants a new report.  I have created a temp table in SQL Server and filled it with the appropriate data, which is then summarized with a view in SQL Server.

On the access side, when I link the report to the view, the fields won't format.  I have the format set to standard with 0 decimal places which should be 1,234 but the report shows 1234.

Also on the report I have line total fields which are formatted the same, but actually show 1,234.

Any help or guidance would be great, thanks.

Deedub84
0
Comment
Question by:deedub84
[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 Comments
 
LVL 3

Accepted Solution

by:
dwcummings earned 2000 total points
ID: 37793988
Check to make sure that you are using a numeric data type in your temp table.

Absent that, I have had the same problems with views.

In your Access report, in the field you would like to format, use the following syntax when referencing the field in the Control Source property for the text box:

=CDbl(FieldName)

I hope that this helps.
0
 
LVL 1

Author Closing Comment

by:deedub84
ID: 37794171
The fields were numeric; the =cdbl([FieldName]) did the job beautifully.  Thanks!
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

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.
We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

656 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