ACC95: Sum() Function Returns 0 in Report Output to MS ExcelID: Q154396
|
Advanced: Requires expert coding, interoperability, and multiuser skills.
When you output a Microsoft Access report that uses the Sum() function
to Microsoft Excel, the result of the calculation in the Microsoft Excel
spreadsheet is zero (0).
To work around the problem, change the following properties of the bound
control being summed (not the text box containing the Sum() function) to
the following settings:
Format: Fixed
Decimal Places: Desired number of decimal places
Microsoft has confirmed this to be a problem in Microsoft Access 7.0. This problem no longer occurs in Microsoft Access 97.
Text box:
Name: test
ControlSource: =sum([ShipperID])
For more information about using the Sum() function, search for "Sum function," and then "Computing a total for a calculated control on a form or report" using the Microsoft Access for Windows 95 Help Index.
Keywords : kbinterop IntpOff
Version : 7.0
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: April 30, 1999