| DatabaseLessons.com |
'Serving the Microsoft® Access |
|
|
New Tables and Fields via VBA - Part 2In 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. NOTE: All the VBA code segments on the Database Lessons site assume that you have DAO references active. If you are not sure what this means, and you are using Microsoft Access 2000 or higher, click here. (article continues after sponsor spot) 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. Happy Coding |
|
|
© 2006, 2007, 2008 Richard W. Killey. All Rights Reserved. - Privacy Policy |