Help with VB3/Access 2.0 problem PLEASE!!! 
Author Message
 Help with VB3/Access 2.0 problem PLEASE!!!

I am writing an application to transfer data from an old database to a
new database.  While writing to the new database, I am getting the
message "Cannot save;  currently locked by user 'Admin' on machine
'BRIAN'."  The problem *does not* occur on the same table each time -
it varies, but has always been one of two tables, both late in the
procedure.

I have already whacked all the .ldb and .mda files I could find.  I am
running Win95, but I went into system.ini to disable vshare.exe to
make sure that was not the problem.  I also used autoexec.bat to load
share.exe, and increased the locks to 1,000.  This had no effect
whatsoever on the problem.

Any hints?



Fri, 11 Sep 1998 03:00:00 GMT  
 Help with VB3/Access 2.0 problem PLEASE!!!
You should install the Jet 2.5 engine.  Lots of these type of errors were addressed in the patch.

The 2.5 update may solve your problem.  It is available from FTP at Microsoft and on Technet.

/Peter

Quote:

> I am writing an application to transfer data from an old database to a
> new database.  While writing to the new database, I am getting the
> message "Cannot save;  currently locked by user 'Admin' on machine
> 'BRIAN'."  The problem *does not* occur on the same table each time -
> it varies, but has always been one of two tables, both late in the
> procedure.

> I have already whacked all the .ldb and .mda files I could find.  I am
> running Win95, but I went into system.ini to disable vshare.exe to
> make sure that was not the problem.  I also used autoexec.bat to load
> share.exe, and increased the locks to 1,000.  This had no effect
> whatsoever on the problem.

> Any hints?



Fri, 11 Sep 1998 03:00:00 GMT  
 Help with VB3/Access 2.0 problem PLEASE!!!

It seems to that you have two instances of your program, and both of
them attaches to the same database. If this is right, you do have to
handle multiuseraccess in your program code.

As you probably know, edit/addnew - update, seek, and most of the
other database operations lock pages or entire tables. The problem is
the unlocking. This happens in a background process. My experience is
that you have to tell the jet engine to do this background process.
The statement I use after all operations that locks parts of my
database is:
VB4: DBEngine.Idle dbFreeLocks
VB3: FreeLocks

Hope this helps!

Quote:
>I am writing an application to transfer data from an old database to a
>new database.  While writing to the new database, I am getting the
>message "Cannot save;  currently locked by user 'Admin' on machine
>'BRIAN'."  The problem *does not* occur on the same table each time -
>it varies, but has always been one of two tables, both late in the
>procedure.
>I have already whacked all the .ldb and .mda files I could find.  I am
>running Win95, but I went into system.ini to disable vshare.exe to
>make sure that was not the problem.  I also used autoexec.bat to load
>share.exe, and increased the locks to 1,000.  This had no effect
>whatsoever on the problem.
>Any hints?

Ulf Erik Forsbakk

www:   http://www.forum.no/home/wolf.htm


Sat, 12 Sep 1998 03:00:00 GMT  
 Help with VB3/Access 2.0 problem PLEASE!!!
Howdy Brian!

Quote:
>I am writing an application to transfer data from an old database to a
>new database.  While writing to the new database, I am getting the
>message "Cannot save;  currently locked by user 'Admin' on machine
>'BRIAN'."
>Any hints?

You might try putting in a 'FreeLocks' call after every n addnew/update
pairs. If you're importing a lot of records, maybe Jet can't keep up with
the lock/release requests. Just a thought... HTH - dmc


Sat, 12 Sep 1998 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Help: Problem reading Access 2.0 mdb from VB3 under Win95/Access 7.0

2. Help: Problem connecting VB3 app to Access 2.0 w/ODBC in Win-OS/2

3. Help: Problem connecting VB3 app to Access 2.0 w/ODBC in Win-OS/2

4. Accessing Access 2.0 database with VB3, ODBC 2.0 and Microsotf Jet Engine Compatibility Layer

5. Problems accessing Access 2.0 via ODBC 2.x from VB3.0

6. VB3 and Access 2.0 problem

7. Problem Copying Access 2.0 database in VB3

8. VB3 - Access 2.0 Compat Layer compact problem

9. VB3.0 & Access 2.0 problems

10. VB3 and Access 2.0 problem

11. VB3 / Access 2.0 problem with data lengths

12. VB3-Access 2.0 problems on Windows NT

 

 
Powered by phpBB® Forum Software