I have an unbound form that I use to select records. The date field(s) are comboboxes and you can select a DateRange and it calculates which records to return
I've got these working so far
DateRange DateRangeCalc
Today Date()
This Month Between DateSerial(Year(Now()), Month(Now()), 1) And DateSerial(Year(Now()), Month(Now()) + 1, 0)
Last Month Between DateSerial(Year(Now()), Month(Now()) - 1, 1) And DateSerial(Year(Now()), Month(Now()), 0)
Next Month Between DateSerial(Year(Now()), Month(Now()) + 1, 1) And DateSerial(Year(Now()), Month(Now()) + 2, 0)
' Thanks to matthewspatrick Date:09.14.2006 ID:17516636 for those month ones
How do I do this/last/next Year or Week or Quarter?
The next 90 days?
Is it possible to let the user enter a date/daterange themselves in the same box eg.
between 01/01/2008 and 04/05/2008 or do I need a separate box?
Start Free Trial