Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Deleting Fields from BE table

Status
Not open for further replies.

EddyLLC

Technical User
Mar 15, 2005
304
US
I use the following code to add field to a backend table. How can I delete a field from a backend table? Thanks


Set wrkDefault = DBEngine.Workspaces(0)
Set dbsUpdate = wrkDefault.OpenDatabase(DatabasePath, True)
Set tdfUpdate = dbsUpdate.TableDefs("tbl1")
With tdfUpdate
Set tdfField = .CreateField("Field1", DB_BOOLEAN)
.Fields.Append tdfField
End With
 
EddyLLC,
[tt]tdfUpdate.Fields.Delete "FieldName"[/tt]?

CMP

(GMT-07:00) Mountain Time (US & Canada)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top