ACC: How to Recover a Table Deleted from a DatabaseLast reviewed: March 3, 1998Article ID: Q179161 |
The information in this article applies to:
SUMMARYModerate: Requires basic macro, coding, and interoperability skills. This article demonstrates a sample Visual Basic for Applications function that you can use to recover a table deleted from a Microsoft Access for Windows 95 and Microsoft Access 97 database under the following conditions:
- The database has not been closed since the deletion of the table. - The database has not been compacted since the deletion of the table. - The table was deleted using the Microsoft Access user interface.NOTE: If multiple tables have inadvertently been deleted, this function recovers only the last table that was deleted. The other tables are lost. Microsoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact the Microsoft fee-based consulting line at (800) 936-5200. For more information about the support options available from Microsoft, please see the following page on the World Wide Web:
http://www.microsoft.com/support/supportnet/refguide/default.asp MORE INFORMATIONThe following sample function recovers the last table deleted within a Microsoft Access database. To create the sample function, follow these steps. NOTE: These steps assume that you are creating the sample function for future use. If instead you are adding the code directly to a database in which a table has recently been deleted, skip step 1, because if you have closed Microsoft Access or the database, the deleted table is not recoverable.
REFERENCESFor more information about TableDefs, search the Help Index for "Tabledef Object."
|
Additional query words: Restore Delete Recover
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |