I'm creating a sum query to base my report off of and I am allowing the user to enter the dates it would like the query to run between using the following syntax in the criteria: Between [Enter Start Date:] and [Enter End Date:]. I would like the user to be able to leave the field blank, allowing the following three possibilities:
1. No start date, yes end date yields all results until end date
2. Yes start date, no end date yields all results from start date on
3. No start date, no end date yields all results
So I attempted to use the following syntax in the criteria field:
Between Like[Enter Start Date:]&* and Like[Enter End Date:]&*
However, this gives me an error "The expression you entered contains invalid syntax. You may have entered a comma without a preceding value or identifier."
If it makes a difference, as I said it is a sum query and the total field for this column is set to "Where". Any ideas would be helpful.
1. No start date, yes end date yields all results until end date
2. Yes start date, no end date yields all results from start date on
3. No start date, no end date yields all results
So I attempted to use the following syntax in the criteria field:
Between Like[Enter Start Date:]&* and Like[Enter End Date:]&*
However, this gives me an error "The expression you entered contains invalid syntax. You may have entered a comma without a preceding value or identifier."
If it makes a difference, as I said it is a sum query and the total field for this column is set to "Where". Any ideas would be helpful.