Hello everyone, this is probably the simple question, but it is giving me very hard time to figure out.
I am using the following "ALTER" statements to Add a column to a table and to move it to first (in Access VBA).
And, I am able to add a column to the table with the following ALTER statement at line #1, but unable to move the column to first with the ALTER statement at line #2.
I am getting "Syntax error in ALTER Table statement" error at line #2, can anyone suggest me how to add a column at first in a table using Access VBA?
Thanks!
I am using the following "ALTER" statements to Add a column to a table and to move it to first (in Access VBA).
And, I am able to add a column to the table with the following ALTER statement at line #1, but unable to move the column to first with the ALTER statement at line #2.
Code:
DoCmd.RunSQL "ALTER TABLE TableData ADD COLUMN [Example] TEXT;" DoCmd.RunSQL "ALTER TABLE TableData MODIFY COLUMN [Example]ToMove TEXT FIRST;"
Thanks!
Comment