records older than 24 hrs (1 Viewer)

cymrudesign

Registered User.
Local time
Yesterday, 19:59
Joined
May 7, 2006
Messages
84
i need to make a query that returns all the records older than 24 hrs anyone help me with this one ?
 
Can only be done if you explicitly register the date / time the row was created.

RV
 
i have the time inputed when the form is submitted so it is recorded in the row along with the details ......
 
Using this criteria under your date field should work

<DateAdd("h",-24,Now())
 
Instead of the (more difficult) dateadd which offcourse works you can also (simply) use
Now() - 1
 
on the same line sortof ..........i have the table entry on the time of the call , how would i go about showing how long ago the call was , i have seen other exapmles of calculating the difference between 2 times ,,,, but in this case i only have one field and it would be recalculated depending on when it was viewed?
 
Last edited:
Use the function Now() for the current date and time.
 
Create a calculated column using the formula DateDiff("d",[timeofcallfield],Now()), this will show how long ago it was and it will change each time the query is ran.
 
Create a calculated column using the formula DateDiff("d",[timeofcallfield],Now()), this will show how long ago it was and it will change each time the query is ran.
 
I did try that , but when i run the query it prompts me for an input for the field . im sure its something i have done;-)
 

Users who are viewing this thread

Back
Top Bottom