Can't figure out expression to use for no date

J

Jason Trolian

I am running a querry on an existing collection database.
I am trying to querry accounts that have never been
modified or were modified over 10 days ago. I am usign
this expression to generate all accounts with no activity
in 10 days or more but I am not sure how to make it pull
up records that have never been modifed. The expression I
am using is <=(Date()-10) What should I add to this to
make sure that it finds all accounts that have no modified
date I tried <=(Date()-10)or =(0) but that didnt work.
 
J

John Spencer (MVP)

The criteria for no date would be Is Null

Assuming that you only have one Modified date

Field: LastModified
Criteria: Is Null OR <= DateAdd("d",-10,Date())
 
J

Jason Trolian

Thank You John
-----Original Message-----
The criteria for no date would be Is Null

Assuming that you only have one Modified date

Field: LastModified
Criteria: Is Null OR <= DateAdd("d",-10,Date())




.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top