Hi @StewartBW ,
Access does not support the RENAME TABLE
SQL command.
You can work around this limitation by using a combination of SQL statements to create a new table, copy the data from the old table, and then drop the old table.
- Use
SELECT * INTO {newTableName} FROM {oldTableName} WHERE 1 = 0
statement to create a new table with the same structure as the old table but without copying any data. - Use
INSERT INTO {newTableName} SELECT * FROM {oldTableName}
statement to copy all data from the old table to the new table. - Use
DROP TABLE {oldTableName}
statement to remove the old table from the database.
Best Regards.
Jiachen Li
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.