PC Review


Reply
Thread Tools Rate Thread

Delete table on exit

 
 
=?Utf-8?B?TWlrZQ==?=
Guest
Posts: n/a
 
      10th Oct 2005
Is it possible to delete a table on exiting a form or on exiting Access 2000

Thanks for any help

--
Mike
 
Reply With Quote
 
 
 
 
Nikos Yannacopoulos
Guest
Posts: n/a
 
      10th Oct 2005
Mike,

Not only possible, very easy too! Use the form's Close event to run this
line of code:

DoCmd.DeleteObject acTable, "YourTableNameHere"

Just make sure you compact your database regularly, creating and
deleting tables results in high database bloat. If this is a single user
database, using the Compact on Close option (Tools > Options, General
tab) will do the job just fine.

HTH,
Nikos
 
Reply With Quote
 
John Vinson
Guest
Posts: n/a
 
      10th Oct 2005
On Sun, 9 Oct 2005 23:49:02 -0700, "Mike"
<(E-Mail Removed)> wrote:

>Is it possible to delete a table on exiting a form or on exiting Access 2000
>
>Thanks for any help


I just have to agree with Nikos that a) it's easy, follow his
instructions and b) that it probably *should not be necessary*.

Are you creating a Table just for the purpose of displaying or
printing data? If so, don't; you can base a Form or a Report on a
Query without the extra step of creating a separate table.

John W. Vinson[MVP]
 
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
delete on exit =?Utf-8?B?ZW1mZDYxMDA=?= Windows Vista Mail 1 23rd Feb 2007 08:49 AM
Delete textbox after exit kylekelsch@hotmail.com Microsoft Excel Programming 5 12th Feb 2007 10:43 AM
Delete cookies on exit Paul Bergson Windows XP Internet Explorer 2 1st Sep 2006 01:10 PM
Delete Table on exit =?Utf-8?B?TWlrZQ==?= Microsoft Access Getting Started 0 10th Oct 2005 07:48 AM
Outlook will not delete messages fron the delete folder when exit =?Utf-8?B?amFjazk0NQ==?= Microsoft Outlook Discussion 1 29th Sep 2005 11:59 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:08 PM.