Access 2003 ShortTime Format is not "sticking"

S

Shawn

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.

Very bummed... any help would be greatly appreciated.
 
K

Ken Snell \(MVP\)

Change the Format property of the textbox in your report to "Short Time".
 
K

Ken Snell \(MVP\)

Sorry, just noted that you are speaking of a chart. On which part of the
chart is this "not working"?
 
L

Larry Linson

Shawn said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top