Hi,
I have a combobox that I use for filtering. I would like it to always default to the most recent Monday as the date. Is there a function or something that makes this possible?
Hi,
I have a combobox that I use for filtering. I would like it to always default to the most recent Monday as the date. Is there a function or something that makes this possible?
Try:
Date - Weekday(Date, vbMonday) + 1
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
Awesome! That works great, thanks. So further, what if I wanted to also query for the dates of previous Mondays?
Subtract 7 days to get the previous Monday.
(Date - Weekday(Date, vbMonday) + 1) - 7
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.