ACC2000: Access C/S Does Not Display Full Results with COMPUTEID: Q199137
|
When you run a stored procedure that contains COMPUTE / COMPUTE BY, in a Microsoft Access project, the results are truncated.
To display sums, use a Microsoft Access report instead.
For additional information about using sums in reports, please see the following articles in the Microsoft Knowledge Base:
Q208850 ACC2000: How to Sum a Calculation in a Report
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.
CREATE Procedure MyCompute
AS
SELECT customerid, freight
FROM orders
WHERE customerid LIKE 'AN%'
ORDER BY customerid, freight
COMPUTE SUM(freight) by customerid
COMPUTE SUM(freight)
EXEC MyComputeNote that the output pane shows the following:
customerid freight
---------- ---------------------
ANATR 1.6100
ANATR 11.9900
ANATR 39.9200
ANATR 43.9000
sum
===================
97.42
ANTON 4.0300
ANTON 15.6400
ANTON 22.0000
ANTON 36.1300
ANTON 47.4500
ANTON 58.4300
ANTON 84.8400
sum
===================
268.52
sum
===================
365.94
(14 row(s) affected)
customerid freight
---------------------
ANATR $1.61
ANATR $11.99
ANATR $39.92
ANATR $43.90
Additional query words: pra Microsoft Access Client Server
Keywords : kbdta AccessCS
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: May 13, 1999