My function for deleting tables is not working, since i receive the mesage that the tables participate in one or two relationships.
Cann i add on some code to delete these relationships,in order to delete all the tables after that.My current function is the following
Function DeleteAll()
Dim db As DAO.Database
Dim tdf As DAO.TableDef
Dim qdf As DAO.QueryDef
Dim frm As Document
Dim rpt As Document
Set db = CurrentDb
For Each tdf In db.TableDefs
If Left(tdf.Name, 4) “MSys” Then
DoCmd.DeleteObject acTable, tdf.Name
End If
Next
End Function
-
delete relationships (Access 2000)
- This topic has 5 replies, 3 voices, and was last updated 21 years, 12 months ago.
AuthorViewing 1 reply threadAuthorViewing 1 reply thread