Maleficent
Registered User.
- Local time
- Today, 21:17
- Joined
- Oct 25, 2016
- Messages
- 21
i need to pull data for "yesterday" but excluding weekends
i found the following solution on another thread:
Format(IIf(Weekday(Date())=2,DateAdd("d",-3,Date()),DateAdd("d",-1,Date())),"mm/dd/yyyy")
it worked perfectly at first however...
it only seems to work in the second half of the month. the first half of the month it returns no results, then roughly mid-month it works again.
any ideas?:banghead:
i found the following solution on another thread:
Format(IIf(Weekday(Date())=2,DateAdd("d",-3,Date()),DateAdd("d",-1,Date())),"mm/dd/yyyy")
it worked perfectly at first however...
it only seems to work in the second half of the month. the first half of the month it returns no results, then roughly mid-month it works again.
any ideas?:banghead: