ACC2: Cannot Delete Attached Table with RelationshipLast reviewed: May 7, 1997Article ID: Q119481 |
The information in this article applies to:
SYMPTOMSAdvanced: Requires expert coding, interoperability, and multiuser skills. If you try to delete an attached dBASE, FoxPro, Paradox, or Btrieve table, you may receive the following error message even if no relationship appears to exist between the attached table and any other tables in your database:
Can't delete table <tablename>. It is participating in one or more relationships. CAUSEAt one time, a non-enforceable relationship was established between the attached table and another table in your database. This attachment is no longer valid (for example, the file containing the attached table has been moved or deleted).
RESOLUTIONIf the file containing the attached table was moved, use the Attachment Manager to refresh the relationship. After you refresh the relationship, remove the relationship in the Relationships window, and then delete the attached table. If the file containing the attached table was deleted, you cannot refresh and then remove the relationship. Instead, you can create an Access Basic procedure to remove any relationship in which the attached table is participating, and then delete the attachment. The advantage of this approach is that you can delete the relationship even though no relationship appears in the Relationships window.
MORE INFORMATIONThis article assumes that you are familiar with Access Basic and with creating Microsoft Access applications using the programming tools provided with Microsoft Access. For more information on Access Basic, please refer to the "Building Applications" manual. The following example demonstrates how to create and use an Access Basic procedure to delete an attached table. NOTE: In the following sample code, an underscore (_) at the end of a line is used as a line-continuation character. Remove the underscore from the end of the line when re-creating this code in Access Basic.
|
Keywords : IsmXbase kb3rdparty kberrmsg
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |