O
Olle Andreasson
Hi
I'm trying to calculate StopTime by adding Length in minutes to StartTime
with the DateAdd Function and then compare the calculated time with another
time.
This works fine with all dates and times I've tried except the following.
If DateAdd("n", 20, #7/9/2009 9:30:00 AM#) = #7/9/2009 9:50:00 AM# Then
MsgBox "equal"
The returned value from DateAdd seems to be equal if I look at it visual as a
Date, Double or String but when I compare them in code they are not equal.
Does anyone have a solution for this problem?
/Olle Andreasson
I'm trying to calculate StopTime by adding Length in minutes to StartTime
with the DateAdd Function and then compare the calculated time with another
time.
This works fine with all dates and times I've tried except the following.
If DateAdd("n", 20, #7/9/2009 9:30:00 AM#) = #7/9/2009 9:50:00 AM# Then
MsgBox "equal"
The returned value from DateAdd seems to be equal if I look at it visual as a
Date, Double or String but when I compare them in code they are not equal.
Does anyone have a solution for this problem?
/Olle Andreasson