J Jeff4505 New member Local time Today, 08:06 Joined Mar 1, 2005 Messages 5 Mar 1, 2005 #1 Hi, I need to create a query that looks at the "last active" date on a member's table and to then change the "status" field to "inactive" if it is greater than 2 years ago. Thanks
Hi, I need to create a query that looks at the "last active" date on a member's table and to then change the "status" field to "inactive" if it is greater than 2 years ago. Thanks
Brianwarnock Retired Local time Today, 08:06 Joined Jun 2, 2003 Messages 12,701 Mar 1, 2005 #2 I think you mean updating. You will need an update query like UPDATE Table1 SET Table1.status = "inactive" WHERE ([datefield]<(DateAdd("yyyy",-2,Date()))); Brian
I think you mean updating. You will need an update query like UPDATE Table1 SET Table1.status = "inactive" WHERE ([datefield]<(DateAdd("yyyy",-2,Date()))); Brian
J Jeff4505 New member Local time Today, 08:06 Joined Mar 1, 2005 Messages 5 Mar 1, 2005 #3 Thanks, that worked great. Last edited: Mar 1, 2005