VB3, Access 1.1 multi user access 
Author Message
 VB3, Access 1.1 multi user access

Hi!

I have VB3 accessing a Access 1.1 database.
There are about 30 users, accessing a single database about every minute.
When they access the database they lock the database as follows

Do while database locked
Doevents
Loop
Lock database
Update
Release lock

This worked fine for about 15 users.

But now some times they get database is read only errors.

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.

Thanks




Fri, 25 Dec 1998 03:00:00 GMT  
 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



Thu, 31 Dec 1998 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Access 1.1, VB 3.0, multi-user ?

2. Access 1.1, VB 3.0, multi-user ?

3. Access 1.1, VB 3.0, multi-user ?

4. VB3/4 Problem Accessing Access 1.1, Read Only In WIN95

5. Can VB5 read/convert VB3 Access 1.1?

6. VB3 problems opening Access 1.1 database

7. Application migration VB3 to VB6 - VBX, API, Access 1.1

8. Application migration VB3 to VB6 - VBX, API, Access 1.1

9. Application migration VB3 to VB6 - VBX, API, Access 1.1

10. VB3.0, Access 1.1, Compatibility Layer, Compact Statement

11. Application migration VB3 to VB6 - VBX, API, Access 1.1

12. Converting Access 2.0 DB to Access 1.0 or 1.1

 

 
Powered by phpBB® Forum Software