N
N. Cotton
I have a Front and back end Database and need to rename a table in the back
and a field within that table. I do this as follows:
Dim dbsUpdate As Database, wrkDefault As Workspace
Dim tdfUpdate As TableDef
Set wrkDefault = DBEngine.Workspaces(0)
Set dbsUpdate = wrkDefault.OpenDatabase(strBackEnd, True, False, "MS
Access;")
dbsUpdate.TableDefs("tbltemptable1").Name = "tblControl"
dbsUpdate.TableDefs("tblControl").Fields("Field1").Name = "PatchVersion"
My question is how do I then rename the table in the front-end without
breaking the link?
Many thanks.
and a field within that table. I do this as follows:
Dim dbsUpdate As Database, wrkDefault As Workspace
Dim tdfUpdate As TableDef
Set wrkDefault = DBEngine.Workspaces(0)
Set dbsUpdate = wrkDefault.OpenDatabase(strBackEnd, True, False, "MS
Access;")
dbsUpdate.TableDefs("tbltemptable1").Name = "tblControl"
dbsUpdate.TableDefs("tblControl").Fields("Field1").Name = "PatchVersion"
My question is how do I then rename the table in the front-end without
breaking the link?
Many thanks.