Expand|Select|Wrap|Line Numbers
- Private Sub Command17_Click()
- Dim intHours As Double
- Dim intTrial As Double
- Me.DaysGone = DateDiff("d", [LeaveDate], [ReturnDate])
- intHours = DaysGone * 8
- HoursGone = intHours
- End Sub
Here is a line of code that someone previously suggested:
Expand|Select|Wrap|Line Numbers
- 'MoveWD moves datThis on by the intInc weekdays.
- Public Function MoveWD(datThis As Date, intInc As Integer) As Date
- MoveWD = datThis
- For intInc = intInc To Sgn(intInc) Step -Sgn(intInc)
- MoveWD = MoveWD + Sgn(intInc)
- Do While (Weekday(MoveWD) Mod 7) < 2
- MoveWD = MoveWD + Sgn(intInc)
- Loop
- Next intInc
- End Function
Any help is most appreciated.
Thank you