We have some code in one of databases. I am not up on Access/VBA. Could someone explain what days this is looking at. It did not work over the weekend so I am wondering if this was the issue. Thanks
DOW = Weekday(Now())
If DOW >= 2 And DOW <= 6 Then
Thought as much which is probably why it was not working over the weekend, I guess changing the line so it reads as below should cover all the days. Thanks
No but the programming looks like it does other things so rather than upset anything it I thought that would be the easiest way to cover the whole week. Thanks
If you want to leave this code, that's fine. But I would add some comments like:[pre][green]'It used to check for work days only
'Changed to cover all days of the week[/green][/pre]
In a few months, or when somebody else takes over this app, it will be very confusing to see it without the reason for this line of code. It is like saying: If the month is between January and December then... Are there other months in a year....?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.