office2000建的库vb不认,你可以在acess2000中转换一下
具体操作方法:
打开库后,在acess2000工具菜单中,选择数据库实用工具-转换数据库-到早期acess数据库版本-保存一下,在vb中调用转换后的数据库就可以了。

解决方案 »

  1.   

    VC ADO不认Access2000的数据库,你可以用ODBC编程,如果非要用ADO的话,你可以ACCESS的转换工具,将数据库转换成ACCESS97格式的就可以了!这可能是因为VC6比OFFICE2000先出来的原因吧!所以VC6对ACCESS2000的兼容在某些方面存在一些问题!
      

  2.   

    ///连接数据库 
    m_pConnection->Open("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=test.mdb","","",adModeUnknown);///上面一句中连接字串中的Provider是针对ACCESS2000环境的,对于ACCESS97,需要改为:Provider=Microsoft.Jet.OLEDB.3.51; } 
      

  3.   

    To read Access 2000mdb, i added the following code : 
    AfxGetModuleState()->m_dwVersion = 0x0601; 
    and then i could read Access 2000 mdb, 
    Your project config must be set to shared dll 
    Insert into the initinstance of your myprojapp.h file as 
    shown below 
    [ccode] 
    #ifdef _AFXDLL 
    Enable3dControls(); // Call this when using MFC in a shared DLL 
    AfxGetModuleState()->m_dwVersion = 0x0601; 
    #else 
    Enable3dControlsStatic(); // Call this when linking to MFC statically' 
    #endif 
    [/ccode] 
    Hope that helps