Thread: Diff2Dates
View Single Post
  #3  
Old March 17th, 2010, 12:06 AM posted to microsoft.public.access
Mr. B[_4_]
external usenet poster
 
Posts: 171
Default Diff2Dates

For sorting purposes you may need to just return the value as all minutes so
you can do the comparison and sort on the number.

datediff("n",date1,date2)

-----
HTH
Mr. B
http://www.askdoctoraccess.com/
Doctor Access Downloads Page:
http://www.askdoctoraccess.com/DownloadPage.htm


"youkr" wrote:

I have used the above function, however was wondering if there is a way I can
change what is returned?
At times I get records 1 day 10 hours 4 minutes, and other times 1 hour 8
minutes. When I try to place these returned records in ascendingdescending
order according to this field they do not return in order as there is not a
'0' before the '01' hours. Is there any way of doing this?

The more I play aroudn the more questions I have!!