我已经装了JET4。0
怎么才能让DATA控件支持ACCESS2000?
怎么才能让DATA控件支持ACCESS2000?
解决方案 »
- 如何实现图片旋转的动作过程
- 大家来讨论一下Office开发兼容性的问题?
- dbgrid32.ocs问题
- MysticBoy引进PureBasic3.92(简体中文版)可以制作不带任何库支持的EXE,控制台,DLL!
- 关于DLL
- 收集代码。
- 最菜最菜的问题,如何连接SQL数据库?能提供个教程网址最好了。
- 急!!!!!!!VB中如何以Post方式提交表单??(一个网页的表单要用Post才能正确,VB中如何实现?)分数不够再加!!!!!!!!!!
- 项目帮忙
- 求教:关于类的运行实例个数的计数,我试了全局变量和静态变量,都不起作用,请问如何实现
- professional 还是 server
- 怎样将数字 月份 转成对应的 英文 月份, 有没有函数可以做到。
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon98/html/vbconIntrnscDataCtrlAndAccess2000.asp MSDN Home > MSDN Library > Visual Basic 6.0 > Programmer's Guide (All Editions) > Part 2: What Can You Do With Visual Basic? > Using Visual Basic's Standard Controls > Using the Data Control
Visual Basic ConceptsIntrinsic Data Control Is Usable with Access 2000 Databases
See AlsoAt design time, trying to bind the Data control to a Microsoft Access 2000 database will result in an error: "Unrecognized database format." The Data control can still be used, however, by following the example below: On the Project menu, click References. Clear the Microsoft DAO 3.51 Object Library check box.
Set a reference to the Microsoft DAO 3.6 Object Library.
Draw a Data control and a TextBox control on a form.
On the Properties window, set the TextBox control's DataSource property to the Data control.
Type the name of the field CompanyName into the DataField property box.
Insert code similar to the following into the code window:
Option Explicit
Private daoDB36 As Database
Private rs As Recordset
Dim sPath As StringPrivate Sub Form_Load()
sPath = _
"C:\Program Files\Microsoft Office\Office\Samples\Northwind.mdb"
Set daoDB36 = DBEngine.OpenDatabase(sPath)
Set rs = daoDB36.OpenRecordset("Customers")
Set Data1.Recordset = rs
End SubRun the project.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon98/html/vbconIntrnscDataCtrlAndAccess2000.asp
比较好用
我刚刚用过
谢谢: lihonggen0(