Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
DateDiff
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Koulla  
View profile  
 More options Nov 3, 11:05 pm
Newsgroups: microsoft.public.access
From: Koulla <Kou...@discussions.microsoft.com>
Date: Tue, 3 Nov 2009 04:05:01 -0800
Local: Tues, Nov 3 2009 11:05 pm
Subject: DateDiff
Hi I am using date time field in this format 8/10/2009 10:00:00 pm and I am
using datediff to find the different but it appears only in minutes !
I want to separate different on days, Hours and Minutes !

This is what I am using
=(DateDiff("n",[DateBreakable],[DateResponce])) it works ok but only minutes
appears I want difference in day, Hours and minutes something like that
2Days, 2Hours, 34Minutes

Thanks in advance
Koulla


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rick Brandt  
View profile  
 More options Nov 3, 11:21 pm
Newsgroups: microsoft.public.access
From: Rick Brandt <rickbran...@hotmail.com>
Date: Tue, 3 Nov 2009 12:21:08 +0000 (UTC)
Local: Tues, Nov 3 2009 11:21 pm
Subject: Re: DateDiff

On Tue, 03 Nov 2009 04:05:01 -0800, Koulla wrote:
> Hi I am using date time field in this format 8/10/2009 10:00:00 pm and I
> am using datediff to find the different but it appears only in minutes !
> I want to separate different on days, Hours and Minutes !

> This is what I am using
> =(DateDiff("n",[DateBreakable],[DateResponce])) it works ok but only
> minutes appears I want difference in day, Hours and minutes something
> like that 2Days, 2Hours, 34Minutes

> Thanks in advance
> Koulla

There is no built in function in Access that does that.  You could of
course create a custom function in which you do the math yourself and
return a text string in that format.  

One of the regulars in these groups (I want to say Albert, but that could
be wrong) has already written a function that does what you want.  If you
search these groups you might be able to find a post referring to it.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt   at   Hunter   dot   com


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Spencer  
View profile  
 More options Nov 4, 1:27 am
Newsgroups: microsoft.public.access
From: John Spencer <spen...@chpdm.edu>
Date: Tue, 03 Nov 2009 09:27:38 -0500
Local: Wed, Nov 4 2009 1:27 am
Subject: Re: DateDiff
Try the "More Complete DateDiff Function" Graham Seach and Doug Steele wrote.

     http://www.accessmvp.com/djsteele/Diff2Dates.html

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


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jerry Whittle  
View profile  
 More options Nov 4, 1:40 am
Newsgroups: microsoft.public.access
From: Jerry Whittle <JerryWhit...@discussions.microsoft.com>
Date: Tue, 3 Nov 2009 06:40:05 -0800
Local: Wed, Nov 4 2009 1:40 am
Subject: RE: DateDiff
Format(CDate(DateDiff("n",[DateBreakable],[DateResponce)/1440) +1 , "d:h:m")

I bet that there's a better way, but it's all that I got.
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Koulla  
View profile  
 More options Nov 4, 7:34 pm
Newsgroups: microsoft.public.access
From: Koulla <Kou...@discussions.microsoft.com>
Date: Wed, 4 Nov 2009 00:34:01 -0800
Local: Wed, Nov 4 2009 7:34 pm
Subject: RE: DateDiff
Thank you Jerry it works perfectly
Thank you so much !!!


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google