C
Cristen
Hello. I'm trying to use this code that omits weekend days from a date
calculation. I get an Expected: end of statement error. I am not sure what
to do. I took this code off of another post I found on this site. so I am
not too advanced at this. Thanks!
..iMin = DateDiff("d", sPrevDate, sAppDate) - _
DateDiff("ww", sPrevDate, sAppDate, vbSunday) * 2 _
IIf(Weekday(sAppdate, vbSunday)= vbSaturday, _
IIf (Weekday(sPrevDate, vbSunday) = vbSaturday, 0, 1), _
IIf (Weekday(sPrevDate, vbSunday) = vbSaturday, -1, 0))
calculation. I get an Expected: end of statement error. I am not sure what
to do. I took this code off of another post I found on this site. so I am
not too advanced at this. Thanks!
..iMin = DateDiff("d", sPrevDate, sAppDate) - _
DateDiff("ww", sPrevDate, sAppDate, vbSunday) * 2 _
IIf(Weekday(sAppdate, vbSunday)= vbSaturday, _
IIf (Weekday(sPrevDate, vbSunday) = vbSaturday, 0, 1), _
IIf (Weekday(sPrevDate, vbSunday) = vbSaturday, -1, 0))