I get an error when I try to add a column to a table in Access using the VBA code below: The error I get is "The query is a DDL query and cannot be used as a row source" What am I doing wrong?
Silly me, I removed the recordset part from my code and just used CurrentDb.execute(sql) and it worked
tho you wouldn't really need to add columns to a table via code when you can just design it and add it manually.
Forum Rules