Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query Expression Help needed...

Status
Not open for further replies.
Mar 19, 2002
18
US
Hi - I am builing an "Update Query" in Microsoft Access 2002. I am trying to get the query to change the status field of a record to INACTIVE IF the date field has a date 7 days or older from today's date.

Can someone please show me an expression for this?

Thanks a lot

David
 
Something like this:

UPDATE tblEDates SET tblEDates.Status = IIf(DateDiff("d",[eDate],Now())>=7,"Inactive","Active");
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top