Solved

Access ADP Report fields won't format

Posted on 2012-04-01
2
273 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
Comment Utility
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
Comment Utility
The fields were numeric; the =cdbl([FieldName]) did the job beautifully.  Thanks!
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
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 …
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

771 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