Forums
This topic is locked
automatically delete record after 2 weeks
Posted 14 Oct 2002 19:38:23
1
has voted
14 Oct 2002 19:38:23 Dave Clarke posted:
hi allIs it possible to automatically delete a record after 2 weeks (access)??
I need to do this if a user hasnt confirmed their membership within that period.
Thanks
Dave
ASP|VBScript|IIS5.1|WinXPPro & WinXPHome
Replies
Replied 14 Oct 2002 19:58:06
14 Oct 2002 19:58:06 Dave Clarke replied:
Okay
I can create this command
<b>DELETE FROM accessgroups
WHERE ((accessgroups.fldjoined<Date()-14)) AND fldGroup = 'Guest' </b>
I created it without checking the "return recordset named" box, is this correct?
What do i do with it??
Do i put it on one page, all pages, some pages or what??
Will it run everytime that page is opened??
thanks
Dave
ASP|VBScript|IIS5.1|WinXPPro & WinXPHome
Edited by - Davecl on 14 Oct 2002 19:58:29
I can create this command
<b>DELETE FROM accessgroups
WHERE ((accessgroups.fldjoined<Date()-14)) AND fldGroup = 'Guest' </b>
I created it without checking the "return recordset named" box, is this correct?
What do i do with it??
Do i put it on one page, all pages, some pages or what??
Will it run everytime that page is opened??
thanks
Dave
ASP|VBScript|IIS5.1|WinXPPro & WinXPHome
Edited by - Davecl on 14 Oct 2002 19:58:29
Replied 14 Oct 2002 20:31:20
14 Oct 2002 20:31:20 Owen Eastwick replied:
One option if you don't have the ability to set up something on the serever itself is to set up a web page that deletes all records older than 2 weeks as you have then call it from task scheduler on a local computer that you can leave on all the time and will open the browser at the page you have set up each night.
Regards
Owen.
Multiple Parameter UD4 / Access 2000 Database Search Tutorial:
www.tdsf.co.uk/tdsfdemo
Regards
Owen.
Multiple Parameter UD4 / Access 2000 Database Search Tutorial:
www.tdsf.co.uk/tdsfdemo
Replied 14 Oct 2002 23:38:40
14 Oct 2002 23:38:40 Dave Clarke replied:
cheers Owen
I've put the command on the home page, so hopefully that will update the database as often as i need it to.
Dave
ASP|VBScript|IIS5.1|WinXPPro & WinXPHome
I've put the command on the home page, so hopefully that will update the database as often as i need it to.
Dave
ASP|VBScript|IIS5.1|WinXPPro & WinXPHome
Replied 15 Oct 2002 01:25:15
15 Oct 2002 01:25:15 Owen Eastwick replied:
The home page is probably overkill, why not on the conformation or login page?
Regards
Owen.
Multiple Parameter UD4 / Access 2000 Database Search Tutorial:
www.tdsf.co.uk/tdsfdemo
Regards
Owen.
Multiple Parameter UD4 / Access 2000 Database Search Tutorial:
www.tdsf.co.uk/tdsfdemo
Replied 15 Oct 2002 01:38:16
15 Oct 2002 01:38:16 Dave Clarke replied:
mmmm, maybe right there owen, home and login on same page so maybe confirmation page, will have to think about it.
thanks
Dave
ASP|VBScript|IIS5.1|WinXPPro & WinXPHome
thanks
Dave
ASP|VBScript|IIS5.1|WinXPPro & WinXPHome