Text Box using the =DateDiff function

  • Thread starter Thread starter HL
  • Start date Start date

HL

Registered User.
Local time
Today, 17:19
Joined
Feb 13, 2001
Messages
19
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
 
You EquipmentStartTime is before (smaller than) your EquipmentStopTime, hence a negative difference. Switch the arguments to get a positive difference.
 
You could always use =Abs(DateDiff("n",[],[]))

To eliminate negatives
 
Or just swap the arguments round - i.e. change the control source to:

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

Gram
 

Users who are viewing this thread

Back
Top Bottom