i'm so desperate.. i tried a lot of ways to avoid it... but i have. :(
i have a recordset with range of dates and more other columns
i want to create temporary table for calculation with same structure which take any range from the first recordset and create records as the number of days in the range
for (1) 14/08/2016 - 15/08/2016 in the first recorset i'll get 2 records in the second recorsetd:
(1) 14/08/2016
(2) 15/08/2016
but because their same structure i dont success to write it:
i would like to accept your help
note: The goal of splitting dates is to enable run 3 functions i worte which check fulfillment of some labor and rest laws
I am convinced that it is impossible to avoid this split
i have a recordset with range of dates and more other columns
i want to create temporary table for calculation with same structure which take any range from the first recordset and create records as the number of days in the range
for (1) 14/08/2016 - 15/08/2016 in the first recorset i'll get 2 records in the second recorsetd:
(1) 14/08/2016
(2) 15/08/2016
but because their same structure i dont success to write it:
Code:
dim d as date
do until EOF
for d= [rst1]![startshift] to [rst1]![endshift]
With rst2
rst2.AddNew
.Fields("startshift") = d
.Fields("endshift") = d
.Update
next
End With
loop
i would like to accept your help
note: The goal of splitting dates is to enable run 3 functions i worte which check fulfillment of some labor and rest laws
I am convinced that it is impossible to avoid this split
Comment