G
Guest
I am working on a program to backup my backend database. I have a couple
questions. First I want to only keep a daily backup for each day of the
week. So I need to kill the old one. I created a table with SaveDate and
WeekDay. I numbered the WeekDay like 1, 2, etc. So I should only have at the
most 7 records. Ok so I created a backup of the backend end and renamed it
like so Program_Dat.mdb to Program_Dat_3_18_2005.mdb. Now what I am trying
to do is check to see if there is a backend 7 days back if so kill it else
move on. How do I do a date diff this way? My second question is I want to
create a monthly backup as well, but only want to keep 6 months worth. I was
thinking of doing the same type of process, but there are 12 months rather
than 6. So does anyone have a concept on how to do this? I am sure one will
fix the other. Plus put them in the apporpriate folders. Thanks so much in
advance.
questions. First I want to only keep a daily backup for each day of the
week. So I need to kill the old one. I created a table with SaveDate and
WeekDay. I numbered the WeekDay like 1, 2, etc. So I should only have at the
most 7 records. Ok so I created a backup of the backend end and renamed it
like so Program_Dat.mdb to Program_Dat_3_18_2005.mdb. Now what I am trying
to do is check to see if there is a backend 7 days back if so kill it else
move on. How do I do a date diff this way? My second question is I want to
create a monthly backup as well, but only want to keep 6 months worth. I was
thinking of doing the same type of process, but there are 12 months rather
than 6. So does anyone have a concept on how to do this? I am sure one will
fix the other. Plus put them in the apporpriate folders. Thanks so much in
advance.