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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Delete Record after current date?

Status
Not open for further replies.

Herdrich

Technical User
Dec 30, 2008
83
US
I have a database that allows individuals access to our complex until a specific date. How can i have Access delete the record of that person after they have expired?

Ex
Name: Date Entered: Date Expires:
Joe 08/05/09 10/17/09
John 08/05/09 10/16/09
Dan 08/05/09 10/30/09

Joe would reamin on the list until midnight John would be removed and Dan will continue to remain on the list.
 


Hi,

Using your posted data, why would Joe, "reamin on the list until midnight," while John, "would be removed?"

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Sorry if the current date was 10/17/09 i forgot what day it was when i was typing.
 


Hi,

Code:
Delete *
From [Yourtable]
Where [Date Expires]<Date()


Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top