firestorm998
Registered User.
- Local time
- Today, 14:08
- Joined
- Nov 28, 2006
- Messages
- 24
I'm currently using the (Date()-1) function in various fields on a report which is generated each day usining prior day data.
By process of elimination I've come up with the below control source formula to try and account for Weekdays as when the report is run on a Monday it needs to be dated (Date()-3) ie the prior Friday not (Date()-1) being Sunday.
=IIf(Weekday(Date())=2,(Date()-3),(Date()-1))
Is there an easier way of acheiving this? I use the (Date()-1) in various file save macros & auto email subjects etc so I'm not to sure about including the IIF statement in those areas?
Thanks
By process of elimination I've come up with the below control source formula to try and account for Weekdays as when the report is run on a Monday it needs to be dated (Date()-3) ie the prior Friday not (Date()-1) being Sunday.
=IIf(Weekday(Date())=2,(Date()-3),(Date()-1))
Is there an easier way of acheiving this? I use the (Date()-1) in various file save macros & auto email subjects etc so I'm not to sure about including the IIF statement in those areas?
Thanks