PC Review


Reply
Thread Tools Rate Thread

Macro to delete Table - table lock message by Access

 
 
pele
Guest
Posts: n/a
 
      20th Apr 2005
I have a form linked to a table (the name is [Manual Temp
File]) in which the user can add more records. There is a
command button on this form linked to a macro that will
append the contents of this table to another table. After
the append, I then try to delete the [Manual Temp File]
table and replace it with a blank copy of the same table
structure.

Before doing deleting the table, I make sure that teh
macro closes all the forms and queries that might have
been used this table.

Unfortunately, Access selects the table but it won't
delete it and a window pos up. The window says: "The
database could not lock Table Manual Temp File because it
is already in use by another person or process"

Can anybody tell me what could be going and what I can do.
Thanks.

Pele

The
 
Reply With Quote
 
 
 
 
Chris Reveille
Guest
Posts: n/a
 
      20th Apr 2005
Instead of deleting the table why not delete the records
with a delete query?

Chris

>-----Original Message-----
>I have a form linked to a table (the name is [Manual Temp
>File]) in which the user can add more records. There is a
>command button on this form linked to a macro that will
>append the contents of this table to another table. After
>the append, I then try to delete the [Manual Temp File]
>table and replace it with a blank copy of the same table
>structure.
>
>Before doing deleting the table, I make sure that teh
>macro closes all the forms and queries that might have
>been used this table.
>
>Unfortunately, Access selects the table but it won't
>delete it and a window pos up. The window says: "The
>database could not lock Table Manual Temp File because it
>is already in use by another person or process"
>
>Can anybody tell me what could be going and what I can do.
>Thanks.
>
>Pele
>
>The
>.
>

 
Reply With Quote
 
 
 
 
Pele
Guest
Posts: n/a
 
      20th Apr 2005
Chris,

Thank you very much. I didn't even think of that; it was a
better solution and it worked.

Pele


>-----Original Message-----
>Instead of deleting the table why not delete the records
>with a delete query?
>
>Chris
>
>>-----Original Message-----
>>I have a form linked to a table (the name is [Manual

Temp
>>File]) in which the user can add more records. There is

a
>>command button on this form linked to a macro that will
>>append the contents of this table to another table.

After
>>the append, I then try to delete the [Manual Temp File]
>>table and replace it with a blank copy of the same table
>>structure.
>>
>>Before doing deleting the table, I make sure that teh
>>macro closes all the forms and queries that might have
>>been used this table.
>>
>>Unfortunately, Access selects the table but it won't
>>delete it and a window pos up. The window says: "The
>>database could not lock Table Manual Temp File because

it
>>is already in use by another person or process"
>>
>>Can anybody tell me what could be going and what I can

do.
>>Thanks.
>>
>>Pele
>>
>>The
>>.
>>

>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting a “Delete Column” Macro to a “Delete Row” Macro cardan Microsoft Excel Programming 7 15th May 2010 06:38 PM
Message in inbox deleting when delete message in Delete folder scohen36 Windows Vista Mail 2 27th Aug 2009 07:12 AM
Scroll Lock, Num Lock and Caps Lock icons. Mel Bourne Windows XP General 3 19th Jan 2007 08:02 AM
The message Caps Lock On / Off on my screen How do I delete? =?Utf-8?B?Q2FwcyBsb2NrIG9uIC8gb2ZmIG1lc3NhZ2U=?= Microsoft Word Document Management 2 15th Oct 2006 10:38 PM
CAPS LOCK SCROLL LOCK NUM LOCK Flashing JJoe Microsoft Windows 2000 Windows Updates 3 21st Mar 2006 02:14 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:40 AM.