Show field name with count of zero

ariel20029

Board Regular
Joined
Jun 20, 2013
Messages
97
Hi,
Im trying to create a summary count of many queries. My issue is if there is a count of zero it appends no rows. Is there a way to show the Type (T4-Update Deal Number COM) with a 0 count?

INSERT INTO [Q13T- RECAP] ( TYPE, [CountOfDEAL NO_1], COMMENT )
SELECT "T4-Update Deal Number COM" AS [T4-Update Deal Number COM], Count([T4- Update Deal Number- COM].[DEAL NO_1]) AS [CountOfDEAL NO_1], "" AS COMMENT
FROM [T4- Update Deal Number- COM]
GROUP BY "T4-Update Deal Number COM", ""
HAVING ((("T4-Update Deal Number COM")=Nz(Count([T4- Update Deal Number- COM].[DEAL NO_1]))+0));


Thanks for all of your help.
Sharon
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
One way is to have a tables that list each possible Type.
Then do a Left join from this table to the Table/Query which includes all your record counts.
 
Upvote 0

Forum statistics

Threads
1,221,841
Messages
6,162,314
Members
451,759
Latest member
damav78

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top