Public sub BBB()
Dim rst As Object
DoCmd.SetWarnings False
Set rst = CreateObject("ADODB.Recordset")
rst.Source = "Select [Name] FROM MSysObjects Where Type=1 AND Not [Name] Like 'MSys%'"
rst.Open , CurrentProject.Connection
Do Until rst.EOF
DoCmd.RunSQL "Delete FROM [" & rst![Name] & "]"
rst.MoveNext
Loop
rst.Close
DoCmd.SetWarnings True
End sub