Hi,
I have a table with a date field (suppose invoice_date).
I want to see all invoices in a given date range.
Good so far, I can use BETWEEN.
What if I want to let users to be able to skip entering Start Date or End Date or even both? If Start Date isn't entered as a parameter and End Date is, I want to return all the records that are < to the End Date entered. Similarly, if End Date is not entered and Start Date is, I want to return all records that are > to the Start Date entered. If no date entered at all, I want to return every single record in the table.
I'm a noob in Access and I'd like to be able to do this using just Access Query Builder, not VB if possible of course.
Any ideas how this can be done?
Regards,
-Tony.
I have a table with a date field (suppose invoice_date).
I want to see all invoices in a given date range.
Good so far, I can use BETWEEN.
What if I want to let users to be able to skip entering Start Date or End Date or even both? If Start Date isn't entered as a parameter and End Date is, I want to return all the records that are < to the End Date entered. Similarly, if End Date is not entered and Start Date is, I want to return all records that are > to the Start Date entered. If no date entered at all, I want to return every single record in the table.
I'm a noob in Access and I'd like to be able to do this using just Access Query Builder, not VB if possible of course.
Any ideas how this can be done?
Regards,
-Tony.