回归

Shadow

  DonewsBlog  |  Donews首页  |  Donews社区  |  Donews邮箱  |  我的首页  |  联系作者  |  聚合   |  登录
  307篇文章 :: 0篇收藏:: 16篇评论:: 1个Trackbacks

文章

收藏

相册

论坛

软件

存档


正在读取评论……


先增加引用--》microsoft activex data objects 2.0 library

Dim adoCmm As New ADODB.Command
 Dim adoRec As New ADODB.Recordset
 adoCnn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\vb\2\news.mdb;Persist Security Info=False"
 adoCmm.ActiveConnection = adoCnn
 adoCmm.CommandType = adCmdText
 adoCmm.CommandText = "select * from employees"
 Print "连接数据库成功"



Trackback: http://tb.donews.net/TrackBack.aspx?PostId=931203


[点击此处收藏本文]  发表于2006年06月29日 4:47 PM




正在读取评论……

发表评论

大名:
网址:
验证码
评论