Hi, anyone knows how to make a variable positive?
For instance, I need variable Time_Diff to be positive even if the calculation turn out to be otherwise:
Time_Diff = DateDiff("n", Date1, Date2)
Thx
Printable View
Hi, anyone knows how to make a variable positive?
For instance, I need variable Time_Diff to be positive even if the calculation turn out to be otherwise:
Time_Diff = DateDiff("n", Date1, Date2)
Thx
Use the Abs(number) function