<xmp>
Hello,
I will have a database that will need to purge records after they are one week old. I would like this to happen during the adding process. Here is what I am thinking...
I have a DATE field and a TIME field. In the new sub somewhere, could I say:
Open db;
foreach record
$howold = $rec{'DATE'}.$rec{'TIME'};
if ($howold < &get_date(time()-604800)
{
delete record
This is just pseudo. Could you help me get what I want?
</xmp>
[This message has been edited by Chris071371 (edited August 06, 1999).]
Hello,
I will have a database that will need to purge records after they are one week old. I would like this to happen during the adding process. Here is what I am thinking...
I have a DATE field and a TIME field. In the new sub somewhere, could I say:
Open db;
foreach record
$howold = $rec{'DATE'}.$rec{'TIME'};
if ($howold < &get_date(time()-604800)
delete record
This is just pseudo. Could you help me get what I want?
</xmp>
[This message has been edited by Chris071371 (edited August 06, 1999).]

