Hmmm... Try that with 5:00 am minus 4:00 am same day. It will never return less than 24 hours. I have to go back to what I and Tore said. You can't do it without knowing the dates involved.
Alan
>this should work:
>
>store (ctot("01/02/2001 " + thisform.text2.value)- ctot("01/01/2001 " + thisform.text1.value)) / (60*60) to tResult
>
>
>
>>hi,
>>thank you,
>>
>>i try to do that,but it didn't work,
>>
>>if you know how ,can you send any sample,
>>
>>i'll appreciate
>>
>>thanks.
>>regards