needadvice
Programmer
I have a report that runs off a "Master Query" which is composed of four small queries. Each pulls a count of records with a particular "Code". I enter two dates on a form and it pulls the count of records between the dates.
The problem is one of the codes has no records for the choosen dates. As a result the Master query does not run and the report comes up blank. How do I get the query to pull up Zero for no records. Here is the SQL for the offending query.
SELECT MailLog.Code, Count(MailLog.Code) AS CountOfCode
FROM MailLog
WHERE (((MailLog.Date) Between [Forms]![MonthlyReportsDates]![StartDate] And [Forms]![MonthlyReportsDates]![StopDate]))
GROUP BY MailLog.Code, MailLog.Code
HAVING (((MailLog.Code) Like "L"
);
My usual sources at work have not figured this out, any help greatly appreciated.
The problem is one of the codes has no records for the choosen dates. As a result the Master query does not run and the report comes up blank. How do I get the query to pull up Zero for no records. Here is the SQL for the offending query.
SELECT MailLog.Code, Count(MailLog.Code) AS CountOfCode
FROM MailLog
WHERE (((MailLog.Date) Between [Forms]![MonthlyReportsDates]![StartDate] And [Forms]![MonthlyReportsDates]![StopDate]))
GROUP BY MailLog.Code, MailLog.Code
HAVING (((MailLog.Code) Like "L"
My usual sources at work have not figured this out, any help greatly appreciated.