calculating a date while taking into account holidays

mardi 17 mars 2015

I have been looking for quite some time for some vba code that would return a date based on values in 2 fields.



In other words, I already have a field that returns transit days based on the customer chosen. End users will then enter a DueDate for the order. I want a field that returns a "ScheduledShipDate" based on [DueDate]-[TransitDays]. The part that makes this more difficult, in my opinion, is the fact that I also need to take into account some specific holidays.



I have already constructed a table with a list of the 6 company holidays and their corresponding dates. [tblHolidays.HolidayDate]



Unfortunately, my vba knowhow might as well be limited to copy and pasting as I do not need to use it all that often. Any help would be greatly appreciated.



Thanks

calculating a date while taking into account holidays

0 commentaires:

Enregistrer un commentaire

Labels