bonjour,
voilà, j'ai un code pour supprimer une quarantaine de tables :
mon probleme : si une table n'existe pas, j'aimerai que le processus continue quand meme, afin que les autres soient effacées quand meme.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 Private Sub suppresstab_Click() On Error GoTo Err_suppresstab_Click CurrentDb.Execute ("drop table AFFECTATION_LOCAL") CurrentDb.Execute ("drop table ADRESSE") ... CurrentDb.Execute ("drop table TYPE_POS") Exit_suppresstab_Click: Exit Sub Err_suppresstab_Click: MsgBox Err.Description Resume Exit_suppresstab_Click End Sub
Partager