Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MS Access: programmatically rename columns

I need to update all column names in an Access database of 8 tables. In short, each underscore in a column name should be replaced with a space. Can you recommend a fast method for doing this?

like image 287
nw. Avatar asked Feb 02 '10 16:02

nw.


1 Answers

Did you try using TableDefs

DatabaseName.TableDefs("TableName").Fields("FieldName").Name = "NewName"

http://msdn.microsoft.com/en-us/library/bb220949.aspx

like image 58
Ilya Kochetov Avatar answered Sep 28 '22 00:09

Ilya Kochetov