Baffled by access report anomaly displaying data

T

Teri Welch

Hello,

We're experiencing very strange behavior with an Access 2000 report. We use
a query as the recordsource for the report. The query is based on several
underlying queries and has numerous fields which are dollar amounts. When
the query is run by itself all the values look fine and show the correct
dollars and cents. But the report does not seem to recognize the fractional
part for one particular field (i.e. the query shows 326.75 but the report
shows 326.00). Meanwhile all the other fields appear fine in both the query
and the report and all the fields are defined the same way on the report.
Yet only this one field loses the fractional part. At first, we did play
around with the textbox properties on the report (Format, Decimal Places,
etc) but it didn't solve the problem. The only thing that changed was
whether the value displayed as 326.00 vs. 326 -- but the .75 never appeared.

To try to isolate the problem we created a new report. At first we added
just the field in question to the Detail section and the value appeared
correctly as 326.75. But as we rebuilt the report adding other fields,
groupings, totals, etc., somewhere along the line the same problem was
reintroduced. After much experimenting we discovered the cause but
unfortunately have no idea how to get around it. For some inexplicable
reason the problem occurs as soon as EITHER of the following happen:

1. Any "Sorting and Grouping" fields are specified for the report
2. Any data fields (from the query) are added to the Report Header/Footer
sections. Literals, labels, and functions (Now(), page numbers, etc) in
these sections do not cause the problem.

So when both of the above situations are eliminated the field properly
displays as 326.75. Needless to say we are baffled by this.

Teri
 
K

Ken Snell \(MVP\)

Is this data field being "unioned" with other data fields, and are those
fields defined as integer-type numeric data types? If yes, ACCESS / Jet may
be converting your decimal number to an integer so that the data types "play
nice" with each other.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top