View Single Post
  #4  
Old July 17th, 2007, 07:29 AM posted to microsoft.public.access.reports
Larry Linson
external usenet poster
 
Posts: 3,112
Default Access 2003 ShortTime Format is not "sticking"


"Shawn" wrote in message
...
I've got a problem that's got me stumped.

I have a Report chart listing my teams Aveage Handle Time (by month).
When
I view the Qry Builder -- the time is correctly showing SHORT TIME ... ie
11:03 -- elevan minutes, three seconds. When I "run" the report, the
SHORT TIME format is 'lost' and I get .0460416667.

As hard as I've tried -- I can't get the short time format to show on the
chart.


If you are trying to use a Date/Time variable to show an elapsed time, be
aware that it works only under certain circumstances -- the Date/Time
variable is intended for, and works properly for, showing a point in time,
e.g., January 27, 2007 10:23:03AM... which will display 10:23 as "Short
Time."

The date is physically stored in a Double Precision floating point format,
with the whole number part representing the date as days since Dec. 30, 1899
(negative covers dates prior to that date) and the fractional part
representing time (seconds?) since midnight.

So when you store only a time... the built-in Time variable, for example,
you are storing that time with 0 in the date part, and may not format as
you'd like.

If you want represent a period of time... like hours worked in a week...
you'd be better to do so in a numeric variable... perhaps an integer or long
integer in which you store the seconds, or a single or double in which you
store a value in hours or minutes with fraction. Then you will need to
format that yourself, into the hours and minutes format you want.

Larry Linson
Microsoft Access MVP