VBA Access Create Table
In this article I will explain how you can create a table in an access database using VBA.
The code below will create a table with the name “MyTable” using Docmd.RunSQL:
Note: Attempting to create a table that already exists will result in a runtime error. A good idea would be to check if the table exists before trying to create it. This has been covered in the article below:
You can download the file and code used in this article from the link below: