S
Sharkbyte
I've been scanning the archives, and some of the personal Access pages, and
haven't happened across this, yet...
I have 2 instances, in a db, where I need to round time. One to the
half-hour, one to the quarter-hour. In both cases, I am calculating a time
difference and producing a decimal. I easily can go to Tenths, but the
customer wants the other.
To add another level of complexity, I'm fairly certain the customer would
want any partial time to roll up. ie. 3 hrs. 2 min. rounds to 3.5 hours.
Here is the code I was using to round to Tenths. I just can't figure out
what I need to do to get to halves or quarters.
Round(FormatNumber(((Time() - gblArrivalTime) * 24), 2), 1)
Thanks, in advance.
Sharkbyte
haven't happened across this, yet...
I have 2 instances, in a db, where I need to round time. One to the
half-hour, one to the quarter-hour. In both cases, I am calculating a time
difference and producing a decimal. I easily can go to Tenths, but the
customer wants the other.
To add another level of complexity, I'm fairly certain the customer would
want any partial time to roll up. ie. 3 hrs. 2 min. rounds to 3.5 hours.
Here is the code I was using to round to Tenths. I just can't figure out
what I need to do to get to halves or quarters.
Round(FormatNumber(((Time() - gblArrivalTime) * 24), 2), 1)
Thanks, in advance.
Sharkbyte