Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

Running comparison on Datediff with modified format.

$
0
0
Good evening and salutations!

I have a form that runs time calculations for me which works wonderfully. I would like to be able to run comparisons on those times.

The code that runs the times is as follows:

Code:

txtbox = (dateDiff("n", [DispTimeCalc], [CathTimeCalc])) \ 60 & Format*((DateDiff("n", [DispTimeCalc], [CathTiemCalc])) mod 60, "\:00")
So it will return the difference between two times as hh:mm.

I would like to be able to compare the minutes. For instance:

If :mm >20 then txtbox = "suckaroony"

Thanks!

Viewing all articles
Browse latest Browse all 13329

Trending Articles