Extract logs over 30 working days

Which thread, the link does not work?
 
Yeah, sorry Mile. Don't know why that is.


Anyway, it's the post by Moonshine about 8 threads down titled
"Calculate working days"
 
This thread contains a count forward 30 days excluding holidays and weekends, it could be modified slightly to go back 30 days instead.
 
This, I think, is the only line you'll need to change:

Code:
dteTemp = dteTemp + 1

to:

Code:
dteTemp = dteTemp - 1


Possibly the line underneath by reversing the arithmetic operator also.
 
Finally got it to work!!! Only took the whole morning. Cheers Mile. The way I went about it meant I didn't have to change your code. But hey, the query works!
 
Oh no. Nothing as advanced as that!

Probably not the way to go but what I did in the query grid was have a field when the log was opened, a field that calculated plus 30 working days on the log date, a field with todays date. To extract those over 30 working days (ie, overdue), I took out those records where the due date is less than todays date. Clunky but I think it works!!!
 

Users who are viewing this thread

Back
Top Bottom