Access中如何用SQL插入记录
先看这段代码Dimdb1AsDAO.DatabaseDimdb2AsDAO.DatabaseSetdb1=CurrentDbSetdb2=OpenDatabase("E:...
先看这段代码
Dim db1 As DAO.Database
Dim db2 As DAO.Database
Set db1 = CurrentDb
Set db2 = OpenDatabase("E:\a.accdb")
Dim rs1 As DAO.Recordset
Set rs1 = db1.OpenRecordset("Select a,b,c,e From tb1")
Dim rs2 As DAO.Recordset
Set rs2 = db2.OpenRecordset("tb2")
请问如何将rs1 insert into 到 rs2 中?? 展开
Dim db1 As DAO.Database
Dim db2 As DAO.Database
Set db1 = CurrentDb
Set db2 = OpenDatabase("E:\a.accdb")
Dim rs1 As DAO.Recordset
Set rs1 = db1.OpenRecordset("Select a,b,c,e From tb1")
Dim rs2 As DAO.Recordset
Set rs2 = db2.OpenRecordset("tb2")
请问如何将rs1 insert into 到 rs2 中?? 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询