I have a report that has a couple of fields that I wish to use criteria to pull from a text box on a form
The first field is called EnteredBy and has the following text in the criteria line of the query that loads the report
This works perfectly
The next field is called DateEntered and it has the following text in the criteria line
This also works perfect IF there are dates in both fields.
I want to be able to have the user leave one or the other or both of the date fields blank similar to the Like in the Entered by field.
Is this possible?
The first field is called EnteredBy and has the following text in the criteria line of the query that loads the report
Code:
Like "*" & [Forms]![frm_MainMenu2]![frm_Reports].[Form]![cboCdc] & "*"
This works perfectly
The next field is called DateEntered and it has the following text in the criteria line
Code:
Between [Forms]![frm_MainMenu2]![frm_Reports].[Form]![txtCDCContactNotesStartDate]_
And [Forms]![frm_MainMenu2]![frm_Reports].[Form]![txtCDCContactNotesEndDate]
This also works perfect IF there are dates in both fields.
I want to be able to have the user leave one or the other or both of the date fields blank similar to the Like in the Entered by field.
Is this possible?