因Access97用的是DAO3.5驱动包,若用Access2000,应在你的机器下安装DAO3.6驱动包.
DAO3.5在visual studio这套碟中可找到,DAO3.6则要在其它地方找,可能在微软的网站,或CSDN中可找到吧!

解决方案 »

  1.   

    如果找不到驱动,就把Access2000转换成Access97
      

  2.   

    我以前的回答,还有别人的,一同粘来access97用的是microsoft jet3.0数据引擎,单独在裸机上安装执行你的程序肯定不行,不管你的程序是static连接的还是怎样;安装microsoft jet3.0数据引擎时在你的机子上安装了相应的com组件,所以不单单是几个dll的问题;安装MDAC2.6也不行地
    解决的方法:
    1、安装microsoft jet3.5数据引擎,visual studio 6.0(10片)的第六或七张上有它,你可以拿来装一下---ok!
    2、安装vc++---当然,这不是好方法;
    3、用wise做安装程序,wise里面可以直接指定使用了DAO技术 
    4、installshale6.2做安装程序,里面可以直接指定使用了DAO技术 如果只是microsoft jet 3.5 的问题,倒有一个比较简单的方法:
    在App的InitInstance()里加入以几句话就行了。
    #ifdef _AFXDLL
    Enable3dControls(); // Call this when using MFC in a shared DLL
    #else
    Enable3dControlsStatic(); // Call this when linking to MFC statically
    #endif
    #ifdef _AFXDLL
    AfxGetModuleState()->m_dwVersion = 0x0601;
    #else
    #endif
    .......
    有几个东东你可以试试
    http://download.microsoft.com/download/access2000/SP/4.0/NT5/EN-US/Jet40SP5_W2K.exe
    http://download.microsoft.com/download/access2000/SP/4.0/W9XNT4/EN-US/Jet40SP5_9xNT.exe
    http://download.microsoft.com/download/office97pro/SP/1/WIN98/EN-US/Jet35sp3.exe
    http://download.microsoft.com/download/access2000/Utility/1.0/WIN98Me/EN-US/JetCU40.exe
    http://download.microsoft.com/download/access20/whitepap/1/WIN98/EN-US/Jetwp.exe其中第一个也许能解决你windows2000下的问题 
      

  3.   

    谢谢大家的帮助,我试试,我发现下面出错:
    try {
    // nonexclusive, read-only
    m_database.Open(m_strDatabase, FALSE, TRUE);
        }
    catch (CDaoException* e) {
    DaoErrorMsg(e);
    e->Delete();
    return FALSE;
        }其中m_strDatabase为:f:\vod\program.mdb,是当前目前下的mdb(access2000)。我按照你们说的试试,问题解决后立即给分,你们继续提建议呀。
      

  4.   

    谢谢大家的帮助,我试试,我发现下面出错:
    try {
    // nonexclusive, read-only
    m_database.Open(m_strDatabase, FALSE, TRUE);
        }
    catch (CDaoException* e) {
    DaoErrorMsg(e);
    e->Delete();
    return FALSE;
        }其中m_strDatabase为:f:\vod\program.mdb,是当前目前下的mdb(access2000)。我按照你们说的试试,问题解决后立即给分,你们继续提建议呀。
      

  5.   

    谢谢大家的帮助,我试试,我发现下面出错:
    try {
    // nonexclusive, read-only
    m_database.Open(m_strDatabase, FALSE, TRUE);
        }
    catch (CDaoException* e) {
    DaoErrorMsg(e);
    e->Delete();
    return FALSE;
        }其中m_strDatabase为:f:\vod\program.mdb,是当前目前下的mdb(access2000)。我按照你们说的试试,问题解决后立即给分,你们继续提建议呀。
      

  6.   

    按照kane_yj的方法:
    在App的InitInstance()里加入以几句话就行了。
    #ifdef _AFXDLL
    Enable3dControls(); // Call this when using MFC in a shared DLL
    #else
    Enable3dControlsStatic(); // Call this when linking to MFC statically
    #endif
    #ifdef _AFXDLL
    AfxGetModuleState()->m_dwVersion = 0x0601;
    #else
    #endif
    就解决问题了,我将这个贴子再放一阵就就给分。
      

  7.   

    按照kane_yj的方法:
    在App的InitInstance()里加入以几句话就行了。
    #ifdef _AFXDLL
    Enable3dControls(); // Call this when using MFC in a shared DLL
    #else
    Enable3dControlsStatic(); // Call this when linking to MFC statically
    #endif
    #ifdef _AFXDLL
    AfxGetModuleState()->m_dwVersion = 0x0601;
    #else
    #endif
    就解决问题了,我将这个贴子再放一阵就就给分。
      

  8.   

    按照kane_yj的方法:
    在App的InitInstance()里加入以几句话就行了。
    #ifdef _AFXDLL
    Enable3dControls(); // Call this when using MFC in a shared DLL
    #else
    Enable3dControlsStatic(); // Call this when linking to MFC statically
    #endif
    #ifdef _AFXDLL
    AfxGetModuleState()->m_dwVersion = 0x0601;
    #else
    #endif
    就解决问题了,我将这个贴子再放一阵就就给分。
      

  9.   

    AfxGetModuleState()->m_dwVersion = 0x0601;
    其实最重要的就这一句话。