Newbies a_mehta Posted February 19, 2003 Newbies Posted February 19, 2003 Hello, I am fairly new to FileMaker but do understand the basics. I need to write a script which can delete old/aged records. So for example, if there is a post submitted today (and subsequently a record created for it) then after 7 days (say) I would like the script to delete the record. I looked at scriptmaker and the various control functions etc. I think I know how the control structure may look like but am not sure how to check the age of the record. Any ideas on how this can be done ? thanks!
Razumovsky Posted February 19, 2003 Posted February 19, 2003 In general, it is not a bad idea to include 4 fields in every file: creation date (auto enter creation date) creation time (auto enter creation time) modification date (auto enter modification date) modification time (auto enter modification time) These fields will track specific creation and modification date times that you can use in a variety of ways, one of which would be to find and delete records over one week old in a startup script for the file. -Raz
Recommended Posts
This topic is 8018 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now