Hello,
What is the correct syntax to use a Create Table query using VBA ADO? Specifically, I am trying to copy the contents of a table, including all of the column and number formatting, into a new table.
I originally used a "select into" query, but this copied only the data, not the formatting.
I tried using:
But I get a syntax error that isn't really explained by the help file (it just says "syntax error in Create Table statement").
All I need to do is take one table and copy it in its entirely to a new table, from Excel using the ADO connection. Can anyone help?
Hopefully this is just a syntax problem and it's an easy answer... I like easy answers.
What is the correct syntax to use a Create Table query using VBA ADO? Specifically, I am trying to copy the contents of a table, including all of the column and number formatting, into a new table.
I originally used a "select into" query, but this copied only the data, not the formatting.
I tried using:
Code:
CREATE TABLE Table2 AS (SELECT * FROM Table1);
All I need to do is take one table and copy it in its entirely to a new table, from Excel using the ADO connection. Can anyone help?
Hopefully this is just a syntax problem and it's an easy answer... I like easy answers.