P
PC User
I have a query for a recordsource for a subform that has criteria for a
date range. Sometimes I don't need to use the date range. Is there
some way to make this query flexible to work when no date range is
entered and I can view all the data from the recordsource table? The
field name "Selected" is a checkbox. The query SQL is as follows:
====================================
SELECT tsubProgramList.ProgramID, tsubProgramList.Selected,
tsubProgramList.DueDate
FROM tsubProgramList
WHERE (((tsubProgramList.Selected)=Yes) AND ((tsubProgramList.DueDate)
Between [Forms]![frmMainEntry]![txtBeginningDate] And
[Forms]![frmMainEntry]![txtEndingDate]));
====================================
Thanks,
PC
date range. Sometimes I don't need to use the date range. Is there
some way to make this query flexible to work when no date range is
entered and I can view all the data from the recordsource table? The
field name "Selected" is a checkbox. The query SQL is as follows:
====================================
SELECT tsubProgramList.ProgramID, tsubProgramList.Selected,
tsubProgramList.DueDate
FROM tsubProgramList
WHERE (((tsubProgramList.Selected)=Yes) AND ((tsubProgramList.DueDate)
Between [Forms]![frmMainEntry]![txtBeginningDate] And
[Forms]![frmMainEntry]![txtEndingDate]));
====================================
Thanks,
PC