I have a database in which I include a macro to retrieve data from a number of excel sheets into a table. I am trying to add a line of code that changes the data type of one of the columns after all data has been retrieved.
I hope someone can help me identify what is wrong with this line:
When I run this code it returns an error message that says: "Syntax error in ALTER TABLE statement"
Thank you in advance.
I hope someone can help me identify what is wrong with this line:
Code:
DoCmd.RunSQL "ALTER TABLE IntradaySheet ALTER COLUMN Time datetime;"
Thank you in advance.