我的程序开始用的是ACCESS97的数据库,但是现在要欢成ACCESS2000,连接就出问题了。我用的是DATA控件连接的,请问,怎么在改动最小的情况下使连接成功!!!
我是菜鸟,请详细说明!! 谢谢!!

解决方案 »

  1.   

    要是有密码,好象就会出错。
    最好是转成access97版本,或者改用adodc控件。
      

  2.   

    你先在access2000中把97转换成2000的格式,再试试
      

  3.   

    你要用Microsoft DAo 3.6 oBJect library来访问ACCESS2000。97是用的DAo3.51
      

  4.   

    当然可以,不过要打上sp5的补丁,那样access2002的格式都能访问
    这个补丁在Microsoft的官方网站上有下
      

  5.   

    Microsoft dao 3.6 object library
      

  6.   

    我给你查了一下微软的MSDNhttp://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
      

  7.   

    install SP5,Set a reference to the Microsoft DAO 3.6 Object Library. 
      

  8.   

    装sp4或sp5,要不然就别用data控件,用ado或者dao,在要不就把数据库导出为别的格式!总之方法还是很多的嘛………………
      

  9.   

    DATA控件控件不支持access2000
    你使用adodc控件吧(最好用ado,不使用控件)
    data都要掉牙了
      

  10.   

    ado控件是一个很的东东,data控件也可以,使用jet4.0