View Full Version : Text Box using the =DateDiff function


HL
03-06-2001, 06:45 AM
Help!!!!

I am using Text box with this function in =DateDiff("n",[Equipment Start Time],[Equipment Stop Time])
The format is set to General Number

Every time it calculates the time it leaves - sign in from of the number.

Q: how do I stop this from happening…

Cheers HL

llkhoutx
03-06-2001, 07:53 AM
You EquipmentStartTime is before (smaller than) your EquipmentStopTime, hence a negative difference. Switch the arguments to get a positive difference.

mark curtis
03-12-2001, 10:01 AM
You could always use =Abs(DateDiff("n",[],[]))

To eliminate negatives

Gram123
03-14-2001, 01:26 AM
Or just swap the arguments round - i.e. change the control source to:

=DateDiff("n",[Equipment Stop Time],[Equipment Start Time])

Gram