Solved

Access ADP Report fields won't format

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
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…
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…

920 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now