In your code you use the / operatorwhereas you should use the \ operator instead. This op. dividesCode:i=(Last_Date - First_Date)/NumSets
ex.:
try it, you'll like itCode:Dim intVal As Integer intVal = 11 \ 4 ' Returns 2. intVal = 9 \ 3 ' Returns 3. intVal = 10 \ 6 ' Returns 2. intVal = 10 / 6 ' Returns 1.![]()




Reply With Quote