Criteria to get records not updated in last last week (1 Viewer)

farhanleos

Registered User.
Local time
Today, 08:04
Joined
Oct 19, 2017
Messages
38
:confused::rolleyes:Gentlemen,

I need your help as I have a query , where I have Column which shows Last Updated Date

I use the below critereia to show the records which have been updated in last 10 days or week

>=(Date()-10)

but i am stuck to set the criteria which shows me all records which is not updated in last 10 days or week ..:confused:

Please help me out

Thanks and best Regards
Farhan
 

CJ_London

Super Moderator
Staff member
Local time
Today, 16:04
Joined
Feb 19, 2013
Messages
16,607
you need to use a left join to your first query

Qry1 (your qry):
SELECT * FROM myTable WHERE LastUpdated>=Date()-10

Qry2 (new qry):
SELECT * FROM MyTable LEFT JOIN Qry1 ON myTable.ID=qry1.ID WHERE qry1.ID is Null
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 23:04
Joined
May 7, 2009
Messages
19,233
Just reverse your criteria:

< Date()-10
 

Users who are viewing this thread

Top Bottom