Trying to create a query criteria that will bring up all events within a date range. So here's what I have. I have two text boxes that are formatted for short date and have date pickers. The person entering the data can either use the date picker or just type in a short date like 2/1/15. I added the following criteria to the field in a query:
Code:
Between [Forms]![Switchboard]![Text501] And [Forms]![Switchboard]![Text502]
This works fine for me unless I leave text501 and/or text502 blank. If I leave the two fields blank, then the form comes up but I get a blank form with no records. Ideally I'd like to have all records appear when the fields are left blank.
Would this be possible? And if so what sort of code or expression would I put in the criteria box for the field in the query?
Thank you.