hoodedrobin1
New Member
- Joined
- Jun 19, 2017
- Messages
- 10
IIf(DatePart("d",Now())<2,>=DateSerial(Year(Date()-1),Month(Date())-1,1) And <DateSerial(Year(Date()),Month(Date()),1),>=DateSerial(Year(Date()-1),Month(Date()-1),1))
What I would like to do, unless the date is the first of the month pull current month to date data. If it is the first (less than day 2 of the month) it will pull last months data.
However when I write this, I get null values.
-Best Regards
What I would like to do, unless the date is the first of the month pull current month to date data. If it is the first (less than day 2 of the month) it will pull last months data.
However when I write this, I get null values.
-Best Regards