That's not going to work because it will just try to evaluate what's in the () first. So try something like this

Code:

If cdbl($TimeValue2) - cdbl($TimeValue1) = 0

_________________________
Eric