Hi All,
I am looking for some help. I have a table that contains a list of account numbers with dates.
I have been asked to calculate consecutive days including weekends.
E.g
Account Number Dates Day Count
ABC 01/02/2017 1
ABC 02/02/2017 2
ABC 10/02/2017 1
XYZ 01/02/2017 1
XYZ 08/02/2017 1
ABC 01/04/2017 1
I was looking at the DateDiff function, and putting this into loop
E.g
For I = 1 to rs.RecordSet.Count
Using the DateDiff function by comparing the previous date with the next date in the table by
rs.MoveNext
Next i
I also need to include any holidays, however I have set a holiday table.
Any help would be very much appreciated.
Thanks and Regards
I am looking for some help. I have a table that contains a list of account numbers with dates.
I have been asked to calculate consecutive days including weekends.
E.g
Account Number Dates Day Count
ABC 01/02/2017 1
ABC 02/02/2017 2
ABC 10/02/2017 1
XYZ 01/02/2017 1
XYZ 08/02/2017 1
ABC 01/04/2017 1
I was looking at the DateDiff function, and putting this into loop
E.g
For I = 1 to rs.RecordSet.Count
Using the DateDiff function by comparing the previous date with the next date in the table by
rs.MoveNext
Next i
I also need to include any holidays, however I have set a holiday table.
Any help would be very much appreciated.
Thanks and Regards