I have a make table query that I want to run from VBA. What is the syntax to add or change the table name?
Thanks for any help!
Thanks for any help!
SELECT YourOldTable.* INTO YourNewTable FROM YourOldTable;
Dim stSQL, YourNewTable YourNewTable = "???????" stSQL = "SELECT YourOldTable.* INTO " & YourNewTable & " FROM YourOldTable;" DoCmd.RunSQL stSQL
Comment