NeoDBpro - Copy and rename Table - Forum

Forum Navigation
You need to log in to create posts and topics.

NeoDBpro - Copy and rename Table

I'm trying to copy a table from an Access database and rename it.

dbpExecSQL "Mydatabase" "CREATE TABLE [TableName] AS; SELECT * ; FROM Cust_1;" ""

The code above will create the table but without any Fields, so making the table useless for adding records.

Can anyone help and explain where i'm going wrong please.

@m-burdess try this:

dbpExecSQL "Mydatabase" "SELECT * INTO TableName FROM Cust_1;" ""

Regards.

alangonzalez91 has reacted to this post.
alangonzalez91

@luishp

Thank you, this has worked. Looks like I was over thinking it.

Regards.