A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

"Add" Can I display numeric zero values in crosstab query reports?



 
 
Thread Tools Display Modes
  #1  
Old November 20th, 2008, 03:32 PM posted to microsoft.public.access.reports
nick
external usenet poster
 
Posts: 642
Default "Add" Can I display numeric zero values in crosstab query reports?

I an using this SQL but I am not getting "0's" in month headers.RANSFORM
(NZ(Count(licensetcount.AcctionId),0)) AS CountOfAcctionId
SELECT licensetcount.PosDlicense, Count(licensetcount.AcctionId) AS [Total
Of AcctionId]
FROM licensetcount RIGHT JOIN Employees ON licensetcount.SSI = Employees.SSI
WHERE (((licensetcount.PosDlicense)=Yes))
GROUP BY licensetcount.PosDlicense, licensetcount.PosDlicense
PIVOT Format([ActionDate],"mmm") In
("Nov","Dec","Jan","Feb","Mar","Apr","May","Jun"," Jul","Aug","Sep","Oct");

Whan am I missing, Thanks in advance

  #2  
Old November 20th, 2008, 08:45 PM posted to microsoft.public.access.reports
Duane Hookom
external usenet poster
 
Posts: 7,177
Default "Add" Can I display numeric zero values in crosstab query reports?

Try:

TRANSFORM Count(Nz(licensetcount.AcctionId,0)) AS CountOfAcctionId
SELECT licensetcount.PosDlicense, Count(licensetcount.AcctionId) AS [Total
Of AcctionId]
FROM licensetcount RIGHT JOIN Employees ON licensetcount.SSI = Employees.SSI
WHERE (((licensetcount.PosDlicense)=Yes))
GROUP BY licensetcount.PosDlicense, licensetcount.PosDlicense
PIVOT Format([ActionDate],"mmm") In
("Nov","Dec","Jan","Feb","Mar","Apr","May","Jun"," Jul","Aug","Sep","Oct");

--
Duane Hookom
Microsoft Access MVP


"Nick" wrote:

I an using this SQL but I am not getting "0's" in month headers.RANSFORM
(NZ(Count(licensetcount.AcctionId),0)) AS CountOfAcctionId
SELECT licensetcount.PosDlicense, Count(licensetcount.AcctionId) AS [Total
Of AcctionId]
FROM licensetcount RIGHT JOIN Employees ON licensetcount.SSI = Employees.SSI
WHERE (((licensetcount.PosDlicense)=Yes))
GROUP BY licensetcount.PosDlicense, licensetcount.PosDlicense
PIVOT Format([ActionDate],"mmm") In
("Nov","Dec","Jan","Feb","Mar","Apr","May","Jun"," Jul","Aug","Sep","Oct");

Whan am I missing, Thanks in advance

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:02 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.