Hi
On reviewing the solutions and other websites (such as http://www.mvps.org/access/index.html) there always seems a problem with catering for holidays. Specifically, for all the solutions catering for holidays you have to enter the specific holiday dates, and I got to thinking that there must a better way of doing this.
I have gotten 95% of the way, but as usual I have over engineered the code and there must be a simpler way. So I have attached the test DB for hopefully some friendly peer review and pointers on improving it. While there is probably a better solution from those more experienced than myself, it has been a good learning experience for me.
A few issues for comment:
1 It does not give a correct solution in some instances eg 17 Apr 03 plus 4 working days gives the wrong date.
2 It runs awfully slow for a big working day number.
3 I had troubles getting the dates to read correctly for checking, hence the temporary holiday table. I tried all sorts of solutions such as format, Cdate, dateserial and #, but could not get a consistent result.
Also a few pointers for assistance:
1 There are 3 tables for a) storing fixed holidays, storing Easter holidays (no real solution for this issue), and c) temp table for storing actual fixed holidays to be used in calculating working days
2 The relevant two forms