A
Anna
Hi: Is it possible that if i leave the CRC or date blank in my form
(frmweb_Mailfilter) it will show all of the record. As right now if i
am not select any value from the form it shows the blank report.
SELECT tbl_WebMail.CRC, Sum(tbl_WebMail.WM_Amt) AS Totamnt
FROM tbl_WebMail
WHERE (((tbl_WebMail.WM_Date) Between
[Forms]![frmWeb_Mailfilter]![txtdate1] And
[Forms]![frmWeb_Mailfilter]![txtdate2]))
GROUP BY tbl_WebMail.CRC
HAVING (((tbl_WebMail.CRC)=[Forms]![frmWeb_Mailfilter]![ddlcrc]));
Thank You.
(frmweb_Mailfilter) it will show all of the record. As right now if i
am not select any value from the form it shows the blank report.
SELECT tbl_WebMail.CRC, Sum(tbl_WebMail.WM_Amt) AS Totamnt
FROM tbl_WebMail
WHERE (((tbl_WebMail.WM_Date) Between
[Forms]![frmWeb_Mailfilter]![txtdate1] And
[Forms]![frmWeb_Mailfilter]![txtdate2]))
GROUP BY tbl_WebMail.CRC
HAVING (((tbl_WebMail.CRC)=[Forms]![frmWeb_Mailfilter]![ddlcrc]));
Thank You.