Nittylions
01-26-2009, 10:30 AM
I currenly have a module set up to exclude weekends from 2 different dates. I now need to expand that to also exclude certain holidays and have no idea how to do it. It will normal be the same holidays every year. Any help would be great.
HiTechCoach
01-26-2009, 10:53 AM
I use a holidays table to store these dates.
Here is a great code example:
fNetWorkdays and fAddWorkDays (http://www.utteraccess.com/forums/showflat.php?Cat=&Board=48&Number=1349593&Zf=f48&Zw=workdays&Zg=0&Zl=a&Main=1349593&Search=true&where=&Zu=&Zd=l&Zn=&Zt=3&Zs=a&Zy=#Post1349593&Zp=)
Hope this helps ...
Nittylions
01-26-2009, 11:06 AM
I use a holidays table to store these dates.
Here is a great code example:
fNetWorkdays and fAddWorkDays (http://www.utteraccess.com/forums/showflat.php?Cat=&Board=48&Number=1349593&Zf=f48&Zw=workdays&Zg=0&Zl=a&Main=1349593&Search=true&where=&Zu=&Zd=l&Zn=&Zt=3&Zs=a&Zy=#Post1349593&Zp=)
Hope this helps ...
So all I'll need to do is add the table for holidays and then copy in this code over my current code?
HiTechCoach
01-26-2009, 11:19 AM
So all I'll need to do is add the table for holidays and then copy in this code over my current code?
Make a backup! Make a back up!
Yes you will need to create the table and populate it with the dates.
Make a backup! Make a back up!
I would test on a copy of your database. I would place the code in a new module to test it. No need to delete you current code.
TIP: Immediately after pasting any code, I always manually compile the code before doing anything else.
Don't forget to make a backup! :D
Nittylions
01-26-2009, 11:33 AM
Make a backup! Make a back up!
Yes you will need to create the table and populate it with the dates.
Make a backup! Make a back up!
I would test on a copy of your database. I would place the code in a new module to test it. No need to delete you current code.
TIP: Immediately after pasting any code, I always manually compile the code before doing anything else.
Don't forget to make a backup! :D
I always make a back up when getting help from outside my mind. I'll ley you know how this goes.