WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Turning Decimal time into HH.MM.SS format

 
Goto page 1, 2
   Home -> Office other -> Reports RSS
Next:  Textbox in report  
Author Message
Scott Graham

External


Since: Jan 20, 2006
Posts: 5



(Msg. 1) Posted: Tue Sep 02, 2008 8:10 am
Post subject: Turning Decimal time into HH.MM.SS format
Archived from groups: microsoft>public>access>reports (more info?)

I have a query setup which gives me cetain times in decimal format using
certain cod *24* within my query. I have based a report on this query but i
want to be able to show the decimal time into the time format above? I have
tried going into properties and use Long time, short time, medium time
without success. Any suggesions would be welcomed.

Thanks
Back to top
Login to vote
Jeff Boyce

External


Since: Nov 04, 2004
Posts: 3939



(Msg. 2) Posted: Tue Sep 02, 2008 9:45 am
Post subject: Re: Turning Decimal time into HH.MM.SS format [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

What properties? Where?

Have you tried using the Format() function on a "field" in your query
definition?

Regards

Jeff Boyce
Microsoft Office/Access MVP

"Scott Graham" <ScottGraham RemoveThis @discussions.microsoft.com> wrote in message
news:BC07BCAE-135D-4D9E-8DDF-6CF7EC9BD58D@microsoft.com...
>I have a query setup which gives me cetain times in decimal format using
> certain cod *24* within my query. I have based a report on this query but
> i
> want to be able to show the decimal time into the time format above? I
> have
> tried going into properties and use Long time, short time, medium time
> without success. Any suggesions would be welcomed.
>
> Thanks
Back to top
Login to vote
KARL DEWEY

External


Since: Mar 03, 2006
Posts: 3052



(Msg. 3) Posted: Tue Sep 02, 2008 9:46 am
Post subject: RE: Turning Decimal time into HH.MM.SS format [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

>>I have a query setup which gives me cetain times in decimal format using
certain cod *24* within my query.

What is "certain cod *24* "?

--
KARL DEWEY
Build a little - Test a little


"Scott Graham" wrote:

> I have a query setup which gives me cetain times in decimal format using
> certain cod *24* within my query. I have based a report on this query but i
> want to be able to show the decimal time into the time format above? I have
> tried going into properties and use Long time, short time, medium time
> without success. Any suggesions would be welcomed.
>
> Thanks
Back to top
Login to vote
Jeff Boyce

External


Since: Nov 04, 2004
Posts: 3939



(Msg. 4) Posted: Tue Sep 02, 2008 2:44 pm
Post subject: Re: Turning Decimal time into HH.MM.SS format [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

?an unconfused bottom fish of appreciable size?

Jeff

"KARL DEWEY" <KARLDEWEY.RemoveThis@discussions.microsoft.com> wrote in message
news:11F80D3A-80FF-4976-91FB-F71EED59EE1A@microsoft.com...
>>>I have a query setup which gives me cetain times in decimal format using
> certain cod *24* within my query.
>
> What is "certain cod *24* "?
>
> --
> KARL DEWEY
> Build a little - Test a little
>
>
> "Scott Graham" wrote:
>
>> I have a query setup which gives me cetain times in decimal format using
>> certain cod *24* within my query. I have based a report on this query but
>> i
>> want to be able to show the decimal time into the time format above? I
>> have
>> tried going into properties and use Long time, short time, medium time
>> without success. Any suggesions would be welcomed.
>>
>> Thanks
Back to top
Login to vote
Scott Graham

External


Since: Jan 20, 2006
Posts: 5



(Msg. 5) Posted: Wed Sep 03, 2008 1:03 am
Post subject: RE: Turning Decimal time into HH.MM.SS format [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Sorry, never clearly explained. the expresion I am using within my query is
"Hours: Sum(([time elapsed]*24))". thus giving me the time elapsed as a
decimal e.g. 0.123 of an hour. Within my report I would like to change this
to Time format e.g. 10mins etc...

"Scott Graham" wrote:

> I have a query setup which gives me cetain times in decimal format using
> certain cod *24* within my query. I have based a report on this query but i
> want to be able to show the decimal time into the time format above? I have
> tried going into properties and use Long time, short time, medium time
> without success. Any suggesions would be welcomed.
>
> Thanks
Back to top
Login to vote
KARL DEWEY

External


Since: Mar 03, 2006
Posts: 3052



(Msg. 6) Posted: Wed Sep 03, 2008 8:11 am
Post subject: RE: Turning Decimal time into HH.MM.SS format [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Post sample data that would be in [time elapsed].
What is the DataType of the field?
--
KARL DEWEY
Build a little - Test a little


"Scott Graham" wrote:

> Sorry, never clearly explained. the expresion I am using within my query is
> "Hours: Sum(([time elapsed]*24))". thus giving me the time elapsed as a
> decimal e.g. 0.123 of an hour. Within my report I would like to change this
> to Time format e.g. 10mins etc...
>
> "Scott Graham" wrote:
>
> > I have a query setup which gives me cetain times in decimal format using
> > certain cod *24* within my query. I have based a report on this query but i
> > want to be able to show the decimal time into the time format above? I have
> > tried going into properties and use Long time, short time, medium time
> > without success. Any suggesions would be welcomed.
> >
> > Thanks
Back to top
Login to vote
John Spencer

External


Since: Jan 21, 2007
Posts: 444



(Msg. 7) Posted: Wed Sep 03, 2008 3:20 pm
Post subject: Re: Turning Decimal time into HH.MM.SS format [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Format(CDate(.123/24)"nn:ss")

OR .123 * 60

'====================================================
John Spencer
Access MVP 2002-2005, 2007-2008
The Hilltop Institute
University of Maryland Baltimore County
'====================================================


Scott Graham wrote:
> Sorry, never clearly explained. the expresion I am using within my query is
> "Hours: Sum(([time elapsed]*24))". thus giving me the time elapsed as a
> decimal e.g. 0.123 of an hour. Within my report I would like to change this
> to Time format e.g. 10mins etc...
>
> "Scott Graham" wrote:
>
>> I have a query setup which gives me cetain times in decimal format using
>> certain cod *24* within my query. I have based a report on this query but i
>> want to be able to show the decimal time into the time format above? I have
>> tried going into properties and use Long time, short time, medium time
>> without success. Any suggesions would be welcomed.
>>
>> Thanks
Back to top
Login to vote
Scott Graham

External


Since: Jan 20, 2006
Posts: 5



(Msg. 8) Posted: Thu Sep 04, 2008 6:01 am
Post subject: Re: Turning Decimal time into HH.MM.SS format [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Example of hours below whcih i want turned into HH:mm:SS format

Hours
0.05
3.33333333333333E-02
0.166666666666667
0.583333333333333
1.05555555555556E-02
0.295
0.429444444444444
0.114444444444444
0.639444444444444
0.227222222222222
0.166666666666667
2.16694444444444
0.166666666666667
8.33333333333333E-02


"John Spencer" wrote:

> Format(CDate(.123/24)"nn:ss")
>
> OR .123 * 60
>
> '====================================================
> John Spencer
> Access MVP 2002-2005, 2007-2008
> The Hilltop Institute
> University of Maryland Baltimore County
> '====================================================
>
>
> Scott Graham wrote:
> > Sorry, never clearly explained. the expresion I am using within my query is
> > "Hours: Sum(([time elapsed]*24))". thus giving me the time elapsed as a
> > decimal e.g. 0.123 of an hour. Within my report I would like to change this
> > to Time format e.g. 10mins etc...
> >
> > "Scott Graham" wrote:
> >
> >> I have a query setup which gives me cetain times in decimal format using
> >> certain cod *24* within my query. I have based a report on this query but i
> >> want to be able to show the decimal time into the time format above? I have
> >> tried going into properties and use Long time, short time, medium time
> >> without success. Any suggesions would be welcomed.
> >>
> >> Thanks
>
Back to top
Login to vote
Display posts from previous:   
       Home -> Office other -> Reports All times are: Eastern Time (US & Canada) (change)
Goto page 1, 2
Page 1 of 2

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
 Windows Other
 Office
  Office Other
 Security
 WinRAR
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET