G
Guest
I am having trouble working with times. I am doing math with time. my
fields are formatted as "Short Time". My fields represent Dispatch Time
("Disp") and Arrival Time ("Arrive"). The program subtracts Dispatch from
Arrival (Arrive - Disp), and I get Response Time ("Resp").
What I want to do is have the program check to make sure they entered both
times correctly. If they did not, the Response Time will be larger than
normal, or out of whack. I already make sure that Arrival is later than
Dispatch.
If Disp.Value > Arrive.Value Then
MsgBox "This Won't Work."
End If
When I try to check if Response time is within limits (normal response time
is 10 minues or less), it does not work. I tried
If Resp.Value > ":10" then
MsgBox "Was your response time more than 10 minutes?"
End If
I also tried "10" in the value area, and it still did not get the correct
response. The Msgbox" area was a little more detailed, but you get the idea.
I think it is the Time format that is messing with me. Any Ideas?
fields are formatted as "Short Time". My fields represent Dispatch Time
("Disp") and Arrival Time ("Arrive"). The program subtracts Dispatch from
Arrival (Arrive - Disp), and I get Response Time ("Resp").
What I want to do is have the program check to make sure they entered both
times correctly. If they did not, the Response Time will be larger than
normal, or out of whack. I already make sure that Arrival is later than
Dispatch.
If Disp.Value > Arrive.Value Then
MsgBox "This Won't Work."
End If
When I try to check if Response time is within limits (normal response time
is 10 minues or less), it does not work. I tried
If Resp.Value > ":10" then
MsgBox "Was your response time more than 10 minutes?"
End If
I also tried "10" in the value area, and it still did not get the correct
response. The Msgbox" area was a little more detailed, but you get the idea.
I think it is the Time format that is messing with me. Any Ideas?