L
LB
I am trying to calculate how long something has been out of service.
I can calculate the time using datediff is the item is back in service
but i would like to calculate the time thus far if it's still out of
service. I was thinking something like:
Private Sub duration()
If Me!In_Service_Date IS NULL Then
Me!Duration = DateDiff(h", [VEHICLE_OS_DATE], [Now()])
Else
End Sub
Any ideas. I'm trying to put this code in the report itself (VB) but
I don't seem to be getting anywhere. Any help would be appreciated.
LB
I can calculate the time using datediff is the item is back in service
but i would like to calculate the time thus far if it's still out of
service. I was thinking something like:
Private Sub duration()
If Me!In_Service_Date IS NULL Then
Me!Duration = DateDiff(h", [VEHICLE_OS_DATE], [Now()])
Else
End Sub
Any ideas. I'm trying to put this code in the report itself (VB) but
I don't seem to be getting anywhere. Any help would be appreciated.
LB