Table Locking 
Author Message
 Table Locking

I have a large table in a database (MS-ACCESS - about 150,000 records).
I have just started working with Visual Basic 4.0, and I am having a
problem with creating and dropping tables.

After getting user input, the program creates a table which is a subset
of the large table with the "SELECT * INTO NEW_TABLE FROM ...." command.

From this smaller table, I created several snapshots to perform various task.
When the user selects new data, I attempt to close the snapshots, and drop
the smaller table.  When I attempt to Drop the table I get the following
error: Run-time error '3211': Couldn't lock table NEW_TABLE, currently in use.

It appears that the snapshot has locked the table and is not releasing it.

Any help would be appreciated.

Thanks,

Mike Zabkowski



Tue, 03 Nov 1998 03:00:00 GMT  
 Table Locking

Quote:

> I have a large table in a database (MS-ACCESS - about 150,000 records).
> I have just started working with Visual Basic 4.0, and I am having a
> problem with creating and dropping tables.

> After getting user input, the program creates a table which is a subset
> of the large table with the "SELECT * INTO NEW_TABLE FROM ...." command.

> From this smaller table, I created several snapshots to perform various task.
> When the user selects new data, I attempt to close the snapshots, and drop
> the smaller table.  When I attempt to Drop the table I get the following
> error: Run-time error '3211': Couldn't lock table NEW_TABLE, currently in use.

> It appears that the snapshot has locked the table and is not releasing it.

> Any help would be appreciated.

> Thanks,

> Mike Zabkowski

1.  Please see that ALL snapshots are closed.
2.  Check Requiry Variable Declaration in Options menu. It is very easy to misspell as name.
3.  Use statement

        snapVariousTasks.Close
        Set snapVariousTasks = Nothing



Wed, 04 Nov 1998 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. open Access table = locked Access table??

2. open Access table = locked Access table??

3. Drop table error - table locked

4. open Access table = locked Access table??

5. Table locking problem

6. atomic promote/demote Access table lock?

7. Question re: Table locking - exclusive

8. Functions and table locks

9. Table locking problems

10. Exclusive table locking

11. Table locking in ADO

12. Tables locked in multiuser environment

 

 
Powered by phpBB® Forum Software