Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rename column ?

Status
Not open for further replies.

tommeekers

Programmer
Sep 10, 2003
77
BE
Maybe this is very easy to do, but I just don't see it ... How do you rename a table using an SQL statement ? I tried using the code below and all kinds of variations on that code, but nothing seems to work. I just get an error saying 'Syntax error in instruction ALTER TABLE'.

Code:
DoCmd.RunSQL "ALTER TABLE [i]tbl_name[/i] RENAME [i]column1[/i] TO [i]column2[/i]"
 
I personally don't know any DDL instruction to rename a column ...

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top