Question : Pivot Table Form - Display Null Values as "0" on Data Axis

Hi,

I have a Pivot Table Form in Access 2003 and need the blank/null cells on
the data axis to display as "0".  This is easy to do in Excel but I have searched
through all of the options in Access and cannot find it.

What is the VBA code required to set this option?

Can you suggest a good reference book or website for coding Pivot Tables
with VBA?

Many thanks,

David

Answer : Pivot Table Form - Display Null Values as "0" on Data Axis

LDSol,

OK, I will spare you the standard discussion of why Null values should not be displayed as zeros:
http://allenbrowne.com/casu-11.html
;-)

Basically, your Null values must be converted to Zeros using the NZ() function in a query.
Then create you Pivot form based on that query.

Here is a sample:
http://www.ee-stuff.com/Expert/Upload/getFile.php?fid=6965

Notice that in the form, the Sums of Instock for the Comedies with a review of 4 are all Zeros, but in the table they are all null.
The Form's source query contains a field that converts the Null values in the Instock Field to Zeros.:
SELECT tblDetailVideos.Category, tblDetailVideos.Review, Nz([Instock],0) AS Instock_NZ
FROM tblDetailVideos;

This should get you what you were after.
:-)

JeffCoachman

Random Solutions  
 
programming4us programming4us