Description :
Permet de vérifier si un champ d'une table existe ou pas,
Dans l'exemple ce-dessous, on vérifie si « lechamp » existe, si ou on le supprime.
Portion de code
1 2 3 4 5 6 7 8 9 10
|
<% RS.Open "SELECT * FROM latable",Conn,3,3 for each Champ in RS.fields if Champ.name = "lechamp" then Conn.execute("ALTER TABLE latable DROP COLUMN lechamp") exit for end if next RS.close %> |
|