Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Option Compare Database
- Option Explicit
- Public Sub del_all_tables()
- Dim db As DAO.Database
- Dim tdf As DAO.TableDef
- Set db = CurrentDb
- For Each tdf In db.TableDefs
- If Not (tdf.Name Like "PB*") Then
- DoCmd.DeleteObject acTable, tdf.Name
- End If
- Next
- End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement