sbbrown9924
Technical User
I am looking for the maximum date interval of
datediff("n", objRS("TriageTime"), objRS("InRoomTime"))
in a "While Not objRS.EOF" loop.
I tried this:
if datediff("n", objRS("TriageTime"), objRS("InRoomTime")) > MaxWaitingTime then MaxWaitingTime=datediff("n", objRS("TriageTime"), objRS("InRoomTime"))
end if
This is probably quite basic. Any help would be appreciated. Thanks.
datediff("n", objRS("TriageTime"), objRS("InRoomTime"))
in a "While Not objRS.EOF" loop.
I tried this:
if datediff("n", objRS("TriageTime"), objRS("InRoomTime")) > MaxWaitingTime then MaxWaitingTime=datediff("n", objRS("TriageTime"), objRS("InRoomTime"))
end if
This is probably quite basic. Any help would be appreciated. Thanks.