Hi all,
I have parameters defined to query for records within the date range entered and to return all records when no dates are specified:
WHERE ((([Problem Tracker].Date) Between [Start Date] And [End Date]) AND (([Start Date]) Is Not Null) AND (([End Date]) Is Not Null)) OR ((([Problem Tracker].Date)>=[Start Date]) AND (([Start Date]) Is Null) AND (([End Date]) Is Null)) OR ((([Problem Tracker].Date)<=[End Date]) AND (([Start Date]) Is Not Null) AND (([End Date]) Is Not Null)) OR ((([Start Date]) Is Null) AND (([End Date]) Is Null))
Whew! It works great with null values, but doesn't seem to acknowledge the start date. For example:
Date Range Entered Dates of Records Returned
6/1/01-6/10/01 6/8/01
6/10/01-6/15/01 6/8/01, 6/12/01
6/12/01-6/12/01 6/8/01, 6/12/01
7/1/01-7/30/01 6/8/01, 6/12/01, 6/18/01, 7/21/01
Any suggestions? BTW this is a great forum!
TIA,
JB
I have parameters defined to query for records within the date range entered and to return all records when no dates are specified:
WHERE ((([Problem Tracker].Date) Between [Start Date] And [End Date]) AND (([Start Date]) Is Not Null) AND (([End Date]) Is Not Null)) OR ((([Problem Tracker].Date)>=[Start Date]) AND (([Start Date]) Is Null) AND (([End Date]) Is Null)) OR ((([Problem Tracker].Date)<=[End Date]) AND (([Start Date]) Is Not Null) AND (([End Date]) Is Not Null)) OR ((([Start Date]) Is Null) AND (([End Date]) Is Null))
Whew! It works great with null values, but doesn't seem to acknowledge the start date. For example:
Date Range Entered Dates of Records Returned
6/1/01-6/10/01 6/8/01
6/10/01-6/15/01 6/8/01, 6/12/01
6/12/01-6/12/01 6/8/01, 6/12/01
7/1/01-7/30/01 6/8/01, 6/12/01, 6/18/01, 7/21/01
Any suggestions? BTW this is a great forum!
TIA,
JB