J
John J.
I start my app with a start.mdb which eventually opens the FE. In that
start.mdb a check is made in the backend for last_backup date. So when the
first user of the day logs on, a backup is being made. I also added code to
compact the database. The code is as follows:
1. Rename the BE to a temporary name
2. Compact (and therefore copy) the temporary BE to the original BE name.
3. Copy the compacted BE to the backup dir and delete the temporary BE.
I have added error trapping.
During the compact and backup phase no one should be allowed into the
application. I can't seem to figure out how prevent users from logging in.
If I set a flag to a lock_value in the BE's control table to True, that
value will be copied along with the BE and in the backup as well. Also,
while the BE doesn't exist for a while, the lock_value can't be read. I'm a
bit stuck.
Can someone give me a hint? Am I on the right track?
Thank you.
John
start.mdb a check is made in the backend for last_backup date. So when the
first user of the day logs on, a backup is being made. I also added code to
compact the database. The code is as follows:
1. Rename the BE to a temporary name
2. Compact (and therefore copy) the temporary BE to the original BE name.
3. Copy the compacted BE to the backup dir and delete the temporary BE.
I have added error trapping.
During the compact and backup phase no one should be allowed into the
application. I can't seem to figure out how prevent users from logging in.
If I set a flag to a lock_value in the BE's control table to True, that
value will be copied along with the BE and in the backup as well. Also,
while the BE doesn't exist for a while, the lock_value can't be read. I'm a
bit stuck.
Can someone give me a hint? Am I on the right track?
Thank you.
John