| the Manx Man's MS Access Pages to subscribe - click here
What Your Computer Consultant Doesn't
Want You to Know
New Tables and Fields via VBA - part 2 (022) NOTE:This article has been converted to our new web site. See it here. In part one we looked at creating a new back end mdb, copying all the data to it, deleting the old one, and renaming the new one. Now, let's look at the use of VBA to create new tables and fields. All the code segments assume that you have DAO references active. If you are not sure what this means, and you are using Access 2000 or higher, click here. Code to create a new table with several fields
Further Comments As usual, I have shown "stripped down" code, with no error checking. I leave it to the reader to add this. In part 3 of this series we will see about adding a new field to an existing table, and also about removing a field from an existing table.
|
tip # 022 || previous tip || next tip