When I copy and paste a table a box appear asking me if I want to copy the structure only, structure or data, or append data to exisiting table. What I want to do is copy a table and only copy the structure and then rename the table. But, I want to do this with code. I do the following but I don't know how to prevent it from coping the data also. Once I create the new table with the structure only I will populate it by importing an excel file. I don't want to use ADO or DAO to delete the records in the new table unless this is the easiest way to resolve my problem. Will someone help?
DoCmd.CopyObject , "adActuals" & YYYYMM & "Final", acTable, "adActuals200107Final"
Thanks,
James
DoCmd.CopyObject , "adActuals" & YYYYMM & "Final", acTable, "adActuals200107Final"
Thanks,
James