Pouriez-vous m'aidez je cherche a modifier le nom d'une colonne de ma table par programmation vb access.
J'ai essayer ce type de requete mais cela ne fonctionne pas.
ALTER TABLE ma_table MODIFY COLUMN [Numéro de voirie] TO NUM_DOMICILE
Librairie : Microsot ADO Ext 2.X for dll and security Microsof ActiveX Data Object 2.X Library
Dim MCat As New ADOX.Catalog
Dim MTable As ADOX.Table
Dim MField As ADOX.Column
Set MCat.ActiveConnection = CurrentProject.Connection
Set MTable = MCat.Tables("Sacs_poubelles1") 'Table
Set MField = MTable.Columns("Numéro de voirie") 'Ancien nom
MField.Name = "NUM_DOMICILE" 'Nouveau nom