S
Someone
Hello
I use the dhAddWorkDaysA function (see here
http://www.mvps.org/access/datetime/date0012.htm) and it works great for
most of my needs in calculating the due date/time given the timeframe
specified (I just thought it'd be easier to help the users).
However, there is one thing that I need to do which I'm not sure whether
this function covers. If it does, I don't know what criteria to specify
and, if it doesn't, I don't know what to do to get the results I need; so
I'm hoping someone could help me.
This is how I'm currently calling the function:
For 1 hour onwards: Me![DueDate] = DateAdd("h", 1, LogDate)
For 1 working day onward: Me![DueDate] = dhAddWorkDaysA(1, LogDate)
For 2 working days onwards: Me![DueDate] = dhAddWorkDaysA(2, LogDate)
I also need to have a timeframe which equates to the end of the following
business day (5 pm). For clarity, let's say at 10.14 am tomorrow (Tuesday)
a user creates a new record using this timeframe, the due date will be by 5
pm on the next day (Wednesday).
Could somebody point me in the right direction please?
Many thanks
M
I use the dhAddWorkDaysA function (see here
http://www.mvps.org/access/datetime/date0012.htm) and it works great for
most of my needs in calculating the due date/time given the timeframe
specified (I just thought it'd be easier to help the users).
However, there is one thing that I need to do which I'm not sure whether
this function covers. If it does, I don't know what criteria to specify
and, if it doesn't, I don't know what to do to get the results I need; so
I'm hoping someone could help me.
This is how I'm currently calling the function:
For 1 hour onwards: Me![DueDate] = DateAdd("h", 1, LogDate)
For 1 working day onward: Me![DueDate] = dhAddWorkDaysA(1, LogDate)
For 2 working days onwards: Me![DueDate] = dhAddWorkDaysA(2, LogDate)
I also need to have a timeframe which equates to the end of the following
business day (5 pm). For clarity, let's say at 10.14 am tomorrow (Tuesday)
a user creates a new record using this timeframe, the due date will be by 5
pm on the next day (Wednesday).
Could somebody point me in the right direction please?
Many thanks
M