|
请问 t小宝大侠
Private Sub 新建表_Click()
Dim dbs As DAO.Database
Dim tdf As TableDef
Set dbs = DBEngine.OpenDatabase("ccc_be.mdb")
dbs.Execute "SELECT * INTO 内容表3 FROM 内容表"
Set tdf = dbs.TableDefs!内容表3
tdf.Fields("乡镇").DefaultValue = "第二乡镇"
DoCmd.TransferDatabase acLink, "Microsoft Access", "ccc_be.mdb", acTable, "内容表3", "内容表3", False
Set tdf = Nothing
Set dbs = Nothing
End Sub
--------------------------
如果更改如下
dim xjb as string
xjb=me.输入乡镇
'那么,下面这名如何将内容表3更改为xjb
Set tdf = dbs.TableDefs!内容表3
-------------------------------------------- |
|