dbTalk Databases Forums  

sorting and formating total times

comp.database.ms-access comp.database.ms-access


Discuss sorting and formating total times in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
neo
 
Posts: n/a

Default sorting and formating total times - 11-05-2003 , 06:51 AM






1.How could I sort months like Jan, Feb, and March, etc.In the query
it shows Feb, Jan, and March.

2. From another query I need to sum total hours elasped. It is only
showing the time when ended. An expression or how could I format
properly like,
str
11:39:46
end
17:43:16

Total
6:03:30 AM
Prefer it to say 6 hrs and 3 min, use a separate expression or a
format issue?

thanks

Reply With Quote
  #2  
Old   
John
 
Posts: n/a

Default Re: sorting and formating total times - 11-05-2003 , 09:22 PM






format() and DatePart() are what you want I believe.

you can get the months numbers 1 through 12 and the minutes as 6, 3 by
using datediff, format and DatePart.

Should be examples in the help but if you need more holler.

John
jobrien at acscience dot com (figgeritout)

work111698 (AT) comcast (DOT) net (neo) wrote in message news:<53509ba4.0311050451.5e2a6d65 (AT) posting (DOT) google.com>...
Quote:
1.How could I sort months like Jan, Feb, and March, etc.In the query
it shows Feb, Jan, and March.

2. From another query I need to sum total hours elasped. It is only
showing the time when ended. An expression or how could I format
properly like,
str
11:39:46
end
17:43:16

Total
6:03:30 AM
Prefer it to say 6 hrs and 3 min, use a separate expression or a
format issue?

thanks

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.