A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Change a date time field display from hours to minutes



 
 
Thread Tools Display Modes
  #1  
Old February 28th, 2005, 11:51 PM
Geoff
external usenet poster
 
Posts: n/a
Default Change a date time field display from hours to minutes

I am designing a database which a field displaying the duration of an action
is required in Minutes and Seconds. However the date time field properties
are shown in hours and minutes, the maximum being 23.59. I need to display a
reading greater than this.
Can I change the format of the date time field to show the figures I require.
  #2  
Old March 1st, 2005, 12:30 AM
Douglas J. Steele
external usenet poster
 
Posts: n/a
Default

The Date data type is intended to store a timestamp (a point in time), not a
duration.

The usual advice is to determine what resolution you need for your durations
(eg. seconds, minutes, etc.), and store the duration as a Long Integer
representing that number of units. You can write functions to convert
between the Long Integer representation and the hh:nn:ss representation.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)



"Geoff" wrote in message
...
I am designing a database which a field displaying the duration of an
action
is required in Minutes and Seconds. However the date time field
properties
are shown in hours and minutes, the maximum being 23.59. I need to
display a
reading greater than this.
Can I change the format of the date time field to show the figures I
require.



 




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 Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Syntax needed to get needed reports Frank Lueder New Users 15 January 6th, 2005 08:39 AM
Still Hoping for help with a Query problem Don Sealer Using Forms 15 November 13th, 2004 06:24 AM
Filtering on custom date field MED Contacts 3 September 17th, 2004 03:05 PM
automate access form patient name, date field, time to outlook app serverrunner Using Forms 0 July 27th, 2004 03:59 AM
Aggregating Date Data into Weeks and Quarters Roger Running & Setting Up Queries 3 July 11th, 2004 05:56 PM


All times are GMT +1. The time now is 07:29 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.