I don't believe you can do this directly via DDL statements. You could use
ALTER TABLE ADD COLUMN to create a column with the new name, then execute an
update query to copy data from the old column to the new column, and then
use ALTER TABLE DROP COLUMN to delete the old column.
Or you could use DAO or ADOX to rename the column. For example,
' DAO example, in short form.
CurrentDb.TableDefs("MyTable").Fields("OldFieldName").Name =
"NewFieldName"
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.