santastefano
Programmer
Hello
I have a routine that creates a timetable based on user input.
One session a week, start date assigned to a variable + 7 days
Two sessions a week the same but a loop that looks at both
and so on.
This works perfectly for up to seven sessions per week
I am trying to make the routine check for holidays - that is adding 7 days brings a holiday date so add 7 days and check again - if so go forward another 7 days, check again etc.
I thought a good route would be establish a table of holiday dates and use DLookUp but this is not working. I think it is neccessary to look through the entire holiday table adding 7 days each time a match is found until a match is not found but I can't make this work properly.
Any suggestions gratefully receieved, if this is not clear please tell me that I have not explained properly.
Best regards to all for 2006
I have a routine that creates a timetable based on user input.
One session a week, start date assigned to a variable + 7 days
Two sessions a week the same but a loop that looks at both
and so on.
This works perfectly for up to seven sessions per week
I am trying to make the routine check for holidays - that is adding 7 days brings a holiday date so add 7 days and check again - if so go forward another 7 days, check again etc.
I thought a good route would be establish a table of holiday dates and use DLookUp but this is not working. I think it is neccessary to look through the entire holiday table adding 7 days each time a match is found until a match is not found but I can't make this work properly.
Any suggestions gratefully receieved, if this is not clear please tell me that I have not explained properly.
Best regards to all for 2006