1. 首页
  2. 编程语言
  3. VB
  4. 用DAO操作EXCELDBASE

用DAO操作EXCELDBASE

上传者: 2019-02-25 08:16:51上传 DOC文件 24.5KB 热度 44次
Dim db As Database, rs As Recordset 打开DBF文件: Set db = OpenDatabase("d:\tmp", False, False, "dbase 5.0") Set rs = db.OpenRecordset("select * from test", dbOpenDynaset) 打开XLS文件: Set db = OpenDatabase("d:\tmp.xls", False, False, "EXCEL 8.0;HDR=Yes;") Set rs = db.OpenRecordset("select * from [Sheet1$]
用户评论