|
-
Feb 8th, 2005, 10:01 PM
#1
Thread Starter
Fanatic Member
convert number to hrs and seconds
I have a number field in my Access table, field1. Field1 shows data as seconds.
Field1
3600
I want to convert this to hrs and second so it shows as
1 hr
How can I do this?
-
Feb 8th, 2005, 10:26 PM
#2
Re: convert number to hrs and seconds
field1 / 60 / 60 = 1
VB Code:
msgbox timeserial(0,0,3600)
gives you 1:00:00 AM
even in WORD
Last edited by dglienna; Feb 8th, 2005 at 11:10 PM.
-
Feb 9th, 2005, 05:08 AM
#3
Re: convert number to hrs and seconds
VBA Code : format(<number>,"hh:nn:ss")
Feeling like a fly on the inside of a closed window (Thunk!)
If I post a lot, it is because I am bored at work! ;D Or stuck...
* Anything I post can be only my opinion. Advice etc is up to you to persue...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|