时间:2021-07-01 10:21:17 帮助过:3人阅读
VBA修改ACCESS表名
Private Sub changetabname_Click() Dim tbl As TableDef Dim dbs As Database Dim nbl As String Dim obl As String nbl = "Newtable" Set dbs = CurrentDb For Each tbl In dbs.TableDefs obl = tbl.Name If obl = "Table1" Then tbl.Name = nbl MsgBox "修改成功", vbInformation, "提示" End If Next End Sub
VBA修改ACCESS表名
标签:base sub inf tab ati led highlight mat 表名