> You use a - while a coma is needed. Use
>
[quoted text clipped - 19 lines]
> >
> > Everything keeps coming back with no results. What am I doing wrong?
>I tried
>DateDiff ("d", [Received Date Time] , [Opened Date Time]) & also
[quoted text clipped - 7 lines]
>09/20/2007 09:55:00 AM 09/20/2007 11:48:00 AM
>09/20/2007 14:40:33 PM 09/24/2007 2:40:33 PM
This will return 0 in all instances. DateDiff("d", ...) returns the number of
passages through midnight between the dates; "m" returns the number of
passages into a new Month. If you want miNutes use "n".
It's not clear just what result you want!
John W. Vinson [MVP]
dplove - 06 Nov 2007 19:26 GMT
The result I'm looking for is the lapse time between received and opened,
whether its minutes hours or days. I made a mistake and typed M and I
really typed N. No records are returning.
> >I tried
> >DateDiff ("d", [Received Date Time] , [Opened Date Time]) & also
[quoted text clipped - 15 lines]
>
> John W. Vinson [MVP]
Here is my SQL view:
SELECT Lagtime.[Received Date Time], Lagtime.[Opened Date Time],
Lagtime.[Time Between Received and Opened], Lagtime.[Resolution Date],
Lagtime.[Closed Date Time], Lagtime.[Elapsed Time], Lagtime.[Department
Name], Lagtime.[(EA) Plant], Lagtime.[(EA) Floor], Lagtime.[Category
Description], Lagtime.[Module Description], Lagtime.[Source Description],
Lagtime.Status
FROM Lagtime;
> I tried
> DateDiff ("d", [Received Date Time] , [Opened Date Time]) & also
[quoted text clipped - 31 lines]
> > >
> > > Everything keeps coming back with no results. What am I doing wrong?
Duane Hookom - 06 Nov 2007 19:32 GMT
Is Lagtime a table? Does it have any records in it?
It looks like Lagtime is a query that doesn't return any records. If it is a
query, what is the SQL view of Lagtime?

Signature
Duane Hookom
Microsoft Access MVP
> Here is my SQL view:
> SELECT Lagtime.[Received Date Time], Lagtime.[Opened Date Time],
[quoted text clipped - 40 lines]
> > > >
> > > > Everything keeps coming back with no results. What am I doing wrong?
Duane Hookom - 06 Nov 2007 19:33 GMT
I have a feeling that you are placing the DateDiff() expression in the
criteria rather than creating a new column. Your SQL view should clear this
up.

Signature
Duane Hookom
Microsoft Access MVP
> Here is my SQL view:
> SELECT Lagtime.[Received Date Time], Lagtime.[Opened Date Time],
[quoted text clipped - 40 lines]
> > > >
> > > > Everything keeps coming back with no results. What am I doing wrong?
dplove - 06 Nov 2007 20:06 GMT
What interval do I use if I want the results to consist of days and minutes?
Can I use "d", "n"?
All this time I forgot to put the expression in a new column, sorry about
that.
> I have a feeling that you are placing the DateDiff() expression in the
> criteria rather than creating a new column. Your SQL view should clear this
[quoted text clipped - 44 lines]
> > > > >
> > > > > Everything keeps coming back with no results. What am I doing wrong?
Duane Hookom - 06 Nov 2007 21:28 GMT
Find one interval and stick with it if you want a numeric value. It's fairly
easy to use minutes and then divide by 60 to get hours or divide by (60*24)
to get days.
Doug Steele has a versatile function that returns a string at
http://www.accessmvp.com/djsteele/Diff2Dates.html.

Signature
Duane Hookom
Microsoft Access MVP
> What interval do I use if I want the results to consist of days and minutes?
> Can I use "d", "n"?
[quoted text clipped - 50 lines]
> > > > > >
> > > > > > Everything keeps coming back with no results. What am I doing wrong?