i have a query that looks for orders in many cases
first i use this statement in order date column criteria
this allow user to find orders between any date range that he want
but there is more cases:
1-if he didn't enter the start date he should get all orders till the date he choose in the end date field
2-if he he didn't enter the end date he should get all orders after the date he choose in the start date field
3-if he didn't put both start and end dates he should get all order for all dates
any solution to solve all these cases will be great
but please if any one can get it done by updating my statement which i put in query criteria will be more than great
i use northwind as sample database
thank you
first i use this statement in order date column criteria
Code:
between [enter start date] and [enter end date]
but there is more cases:
1-if he didn't enter the start date he should get all orders till the date he choose in the end date field
2-if he he didn't enter the end date he should get all orders after the date he choose in the start date field
3-if he didn't put both start and end dates he should get all order for all dates
any solution to solve all these cases will be great
but please if any one can get it done by updating my statement which i put in query criteria will be more than great
i use northwind as sample database
thank you
Last edited: