SirStevie3
Registered User.
- Local time
- Today, 15:26
- Joined
- Jul 29, 2013
- Messages
- 58
Hey all, so i'm still new here and still new to Access so bear with me here... i learned by experimenting and google. i've pretty much used design view to build all my queries but i'm just beginning to learn SQL now.
I have a count column in this query, and i would like for it to return a zero instead of null if it doesnt find anything to count. not sure how much info you guys need, but here's the SQL for the query.
any help is much appreciated, i've googled this topic to no end and havent found a solution that works. :banghead:
thanks so much.
I have a count column in this query, and i would like for it to return a zero instead of null if it doesnt find anything to count. not sure how much info you guys need, but here's the SQL for the query.
Code:
SELECT Documents.Status, Count(Documents.Document) AS CountOfDocument
FROM [Request Details] INNER JOIN Documents ON [Request Details].Request_ID = Documents.Request_ID
GROUP BY Documents.Status, [Request Details].Contract, [Request Details].CDRL, [Request Details].Change_Cycle
HAVING (((Documents.Status)="No Record") AND (([Request Details].Contract)=[Forms]![Report Runner]![Contract]) AND (([Request Details].CDRL)=[Forms]![Report Runner]![CDRL]) AND (([Request Details].Change_Cycle)=[Forms]![Report Runner]![ChangeCycle]));
any help is much appreciated, i've googled this topic to no end and havent found a solution that works. :banghead:
thanks so much.