Solved

Access ADP Report fields won't format

Posted on 2012-04-01
2
312 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 500 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

737 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