没有引用 ado的动态连接库吧
解决方案 »
- vb Collection 的问题,如何查找遍历Colleciton啊???
- 想问问大家,如果编好一个vb 程序后像其他程序一样还要搞个setup。exe安装程序!怎么弄?
- VB如何实现windows的搜索功能(可以通过查询文件中所包含的文字)?
- 关于picturebox的问题
- 求二进制转成UTF-8编码的函数
- 急救:请问各位朋友如何将已扫描到ImgEdit控件的图片保存到一个文件中
- 关于DataGrid的列下标越界的问题.
- 请斑竹满足我的这个心愿 开这个帖子 给大家分 中午结束 再不要改我的帖了
- 帮忙!!帮忙!!
- 为什么要点击两次按钮,它才生效???
- 怎样画一条带箭头的直线?谢谢!
- 什么鸟论坛,又慢又不能搜索!
http://5apc.yeah.net
Dim adoConnection As New ADODB.Connection
Dim adoRecordset As New ADODB.Recordset
'数据库使用的是 Northwind.mdb
adoConnection.Open "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=" & App.Path & "\Nwind97.mdb"adoRecordset.Open "产品", adoConnection, adOpenKeyset (这里出 现同样错误 好象adOpenKeyset 有问题)Set DataGrid1.DataSource = adoRecordset
FormatDataGrid DataGrid1
End Sub
在有我的机器只能找到“Microsoft Activex Data Objects 2.x library”2.1 没有2.5也可以吗?
Microsoft Activex Data Objects 2.1 library
Microsoft Activex Data recordset 2.1 library
两个库
点击“工程” 选择 “引用”
找到之后,双击即可。
Microsoft Activex Data Objects 2.1 library
Microsoft Activex Data Objects recordset 2.5 library
这行 adoRecordset.Open "产品", adoConnection, adOpenKeyset
的adOpenKeyset处还是出错(找不到工程或库)这段程序是我下的
请大家试试
用 DataReport 打印 DataGrid
http://www.triaton.com.cn/Private/Zip/DatGrdRpt.zip
可是
DataReport1怎么添加?看来今天我那里都有问题了!多谢各位了
那位对打印有兴趣请试试
http://www.triaton.com.cn/Private/Zip/DatGrdRpt.zip