How to Delete a Field from a Populated Table (108148)
The information in this article applies to:
- Microsoft Visual Basic Professional Edition for Windows 3.0
This article was previously published under Q108148 SUMMARY
This article shows by code example how to delete one or more fields from
an existing table.
Field definitions cannot be removed from the TableDef of the table, but
once the Field has been appended to the Fields collection, you can create a
new TableDef, minus the unwanted fields, and then copy the data from the
old table into the new table. An intermediate step uses a Microsoft Access
database as a staging area. This will work for databases other than
Microsoft Access because the Microsoft Access database is used and deleted,
with the data never having been affected by the intermediate stage.
Modification Type: | Minor | Last Reviewed: | 1/8/2003 |
---|
Keywords: | KB108148 |
---|
|