I use the following code to add field to a backend table. Is there a way I can modify this code to delete a field from a BE table? I want to delete the entire field not just the data within it. I have never done this before so in tinkering aroung I've noticed there is no .DeleteField that I can pop into the code below. Can somebody point me in the right direction? 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
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