Hello all,
I am having some trouble figuring this little issue out. In this Select statement I am trying to total numbers from 2 queries, I have used the IIf(IsNull(),0() to capture if their is a null record, but what happens if because of the join there is no record?
Code:
SELECT qryReportAVUMSD.EI_ID, qryReportAVUMSD.MOS_ID, IIf(IsNull([qryReportAVUMSD].[SDMH]),0,([qryReportAVUMSD].
[SDMH])+IIf(IsNull([qryReportAVUMSE].[SDMH]),0,([qryReportAVUMSE].[SDMH]))) AS TMH
FROM qryReportAVUMSD
INNER JOIN qryReportAVUMSE ON (qryReportAVUMSD.EI_ID = qryReportAVUMSE.EI_ID) AND (qryReportAVUMSD.MOS_ID =
qryReportAVUMSE.MOS_ID)
ORDER BY qryReportAVUMSD.EI_ID, qryReportAVUMSD.MOS_ID;
I have some records not counted in my data set because there are no records in qryReportAVUMSE but records are in are in qryReportAVUMSD. Any help will appreciated.