?
Solved

Access ADP Report fields won't format

Posted on 2012-04-01
2
Medium Priority
?
317 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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
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 …
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Suggested Courses

762 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