rpeare,
I think Cobbler wants the option to set the Date at the start of the session.
It is not always going to be Date() -1.
The other thing I wondered about was that on a Monday - would Cobbler want Sunday's date - or Friday's?
That isn't mentioned in Cobbler's post but it crossed my mind.
If that IS a requirement then this might work:
Code:
'Access 2010.
If Weekday(Date) = 2 Then 'Uses default Sunday as Day 1.
Workdate = (Date - 3)
Else
Workdate = (Date - 1)
End If
Either way - It sounds like what is required is the option to set the Date at the start of the session.