excel导入access数据库代码.pdfVIP

  • 3
  • 0
  • 约5.63千字
  • 约 7页
  • 2021-06-18 发布于湖南
  • 举报
EXCEL导入 ACCESS数据库代码 Dim Conn As ADODB.Connection Set Conn = New ADODB.Connection Conn.Open 连接到你的数据库 XJGL.MDB的字符串 Conn.Execute select * into tmptable from [excel 8.0;database= + 你 的 excel 表名 + ].[sheet 名$] Conn.Execute insert into xsda( 学籍号 , 准考证号 , 姓名 , 性别 , 出生年月 , 班 级 )select 学籍号 , 准考证号 , 姓名 , 性别 , 出生年月 , 班级 from tmptable Conn.Execute drop tabel tmptable Set Conn = Nothing /////////////////////// Sub LoadUsers() On Error Resume Next Screen.MousePointer

文档评论(0)

1亿VIP精品文档

相关文档