I am new to forum and Access 2010.
I have one Form (FormA) with 2 options:
From Radio Button, I open ReportA (for SDATE and EDate Searches)
ReportA uses following code:
PARAMETERS [Enter Start Date:] DateTime, [Enter End Date:] DateTime;
SELECT ECP_T.ECP_N0, ECP_T.PRI, ECP_T.POC, ECP_T.E_TITLE, ECP_T.HH1N, ECP_T.UH1N, ECP_T.H1W, ECP_T.H1Y, ECP_T.H1Z, ECP_T.IPT, ECP_T.RFP_DTE, ECP_T.D_ECP_DUE_DTE, ECP_T.CHG_DESC_DTE, ECP_T.PMA_INPT_DTE, ECP_T.D_ECP_SUB_DTE, ECP_T.F_ECP_DTE, ECP_T.ECP_RMKS
FROM ECP_T
WHERE (((ECP_T.F_ECP_DTE) Between [Enter Start Date:] And [Enter End Date:]));
The other option off FormA lets user select a specific Fiscal Year. The Fiscal Year is linked to a specific SDATE and EDate in form.
After selecting Fiscal Year and clicking OK, ReportB is opened with the following SQL:
SELECT ECP_T.ECP_N0, ECP_T.PRI, ECP_T.POC, ECP_T.E_TITLE, ECP_T.HH1N, ECP_T.UH1N, ECP_T.H1W, ECP_T.H1Y, ECP_T.H1Z, ECP_T.IPT, ECP_T.RFP_DTE, ECP_T.D_ECP_DUE_DTE, ECP_T.CHG_DESC_DTE, ECP_T.PMA_INPT_DTE, ECP_T.D_ECP_SUB_DTE, ECP_T.F_ECP_DTE, ECP_T.ECP_RMKS
FROM ECP_T
WHERE (((ECP_T.F_ECP_DTE) Between [Forms]![Frm_ECP_CompletedAB]![SDate] And [Forms]![Frm_ECP_CompletedAB]![EDate]));
Can someone show me the codeing/solution so that I only use one Report to load the information into one Where cluase depending on the option selected?
I have one Form (FormA) with 2 options:
From Radio Button, I open ReportA (for SDATE and EDate Searches)
ReportA uses following code:
PARAMETERS [Enter Start Date:] DateTime, [Enter End Date:] DateTime;
SELECT ECP_T.ECP_N0, ECP_T.PRI, ECP_T.POC, ECP_T.E_TITLE, ECP_T.HH1N, ECP_T.UH1N, ECP_T.H1W, ECP_T.H1Y, ECP_T.H1Z, ECP_T.IPT, ECP_T.RFP_DTE, ECP_T.D_ECP_DUE_DTE, ECP_T.CHG_DESC_DTE, ECP_T.PMA_INPT_DTE, ECP_T.D_ECP_SUB_DTE, ECP_T.F_ECP_DTE, ECP_T.ECP_RMKS
FROM ECP_T
WHERE (((ECP_T.F_ECP_DTE) Between [Enter Start Date:] And [Enter End Date:]));
The other option off FormA lets user select a specific Fiscal Year. The Fiscal Year is linked to a specific SDATE and EDate in form.
After selecting Fiscal Year and clicking OK, ReportB is opened with the following SQL:
SELECT ECP_T.ECP_N0, ECP_T.PRI, ECP_T.POC, ECP_T.E_TITLE, ECP_T.HH1N, ECP_T.UH1N, ECP_T.H1W, ECP_T.H1Y, ECP_T.H1Z, ECP_T.IPT, ECP_T.RFP_DTE, ECP_T.D_ECP_DUE_DTE, ECP_T.CHG_DESC_DTE, ECP_T.PMA_INPT_DTE, ECP_T.D_ECP_SUB_DTE, ECP_T.F_ECP_DTE, ECP_T.ECP_RMKS
FROM ECP_T
WHERE (((ECP_T.F_ECP_DTE) Between [Forms]![Frm_ECP_CompletedAB]![SDate] And [Forms]![Frm_ECP_CompletedAB]![EDate]));
Can someone show me the codeing/solution so that I only use one Report to load the information into one Where cluase depending on the option selected?