I have one Access 2000 database front-end that is used to automate many tasks. This database is supposed to stay running all the time, and only a single instance of it should ever be running at one time. It's been running, fairly successfully, for quite a few years. However, I have several irritating, ongoing problems:
1. I or one of my co-workers forgets and starts up a 2nd instance of the db, which can screw up automation.
2 The database occasionally gets shut down, through power outages, IT messing with my stuff, etc.
To overcome problem #2, I run a program called z-cron, which starts up the db when the PC starts up, and tries to re-start the database several times per day just in case it's gotten closed for some reason.
Z-cron opens the db using the /excl command line, to avoid problem #1.
But as a result of this, we have irritating problem #3: When z-cron tries to start the db, and it's already running, we get left with an instance of Access with msg "could not use, file already in use", which won't go away until someone clicks "OK". So unless someone is babysitting this regularly, we can end up with a half-dozen or so instances of Access all sitting there with "could not use" messages, waiting for someone to click and make them go away.
I'm sure there must be a much smarter way of doing this. Any ideas?
1. I or one of my co-workers forgets and starts up a 2nd instance of the db, which can screw up automation.
2 The database occasionally gets shut down, through power outages, IT messing with my stuff, etc.
To overcome problem #2, I run a program called z-cron, which starts up the db when the PC starts up, and tries to re-start the database several times per day just in case it's gotten closed for some reason.
Z-cron opens the db using the /excl command line, to avoid problem #1.
But as a result of this, we have irritating problem #3: When z-cron tries to start the db, and it's already running, we get left with an instance of Access with msg "could not use, file already in use", which won't go away until someone clicks "OK". So unless someone is babysitting this regularly, we can end up with a half-dozen or so instances of Access all sitting there with "could not use" messages, waiting for someone to click and make them go away.
I'm sure there must be a much smarter way of doing this. Any ideas?