
VB3, Access 1.1 multi user access
Quote:
>I suspect that the process that checks if the lock is free passes okay,
>but another user nips in there and locks the database before the process
>that has just checked the lock has chance to lock the database.
>Is there any way to check if the lock was sucessful, then If the lock was
>not got cleanley the process could try again.
Instead of testing the status, why not just attempt to open the
database for exclusive access and trap the error that occurs if
its not available. If the attempt succeeds, you're done - if it
fails, you know another user has it open and must retry.
Another alternative would be to upgrade to Jet 2.x or Jet 3.0.
Both have much improved support for multi-user applications.
Joe
Never underestimate the power of a WAG.
http://www.citilink.com/~jgarrick