肯定能连接,我作过。
用select语句检索。

解决方案 »

  1.   

    你可能用的是DAO3.51,DAO3.51是用不了Access2000的
    试着用一用Microsoft DAO 3.60,应该没问题。
      

  2.   

    FIX: Unrecognized Database Format Error with Data Control or Data Form Wizard 
    ID: Q257780 
    --------------------------------------------------------------------------------
    The information in this article applies to:Microsoft Visual Basic Professional and Enterprise Editions for Windows, version 6.0--------------------------------------------------------------------------------
    SYMPTOMS
    When you attempt to connect to a Microsoft Access 2000 database by using either the standard Data control or the Data Form Wizard, you see the following error message where '...\databasename.mdb' is the absolute filename of the Access 2000 database: Unrecognized database format '...\databasename.mdb'" CAUSE
    The standard Data control uses Data Access Object (DAO) 3.51 to connect to Access databases by using the Jet 3.51 engine.The Data Form Wizard uses the Jet 3.51 OLE DB Provider to connect to Access databases by using the Jet 3.51 engine.The Jet 3.51 engine can connect to Access database versions prior to Access 2000, but cannot connect to Access 2000 databases. RESOLUTION
    These problems are not seen with the Data control and Data Form Wizard that come with Microsoft Visual Studio 6.0 Service Pack 4. Prior to service pack 4 for Visual Studio 6.0, the workaround for the standard Data control problem was to open a Recordset using DAO code, and then assign it to the Data control's Recordset. This workaround is described in Microsoft Knowledge Base article Q238401 in the "References" section. Prior to service pack 4 for Visual Studio 6.0, the workarounds for the Data Form Wizard problem were: Open the Access database through an ODBC DSN that uses the Access ODBC driver version 4.0.
    Build the form manually using Jet 4.0 to connect to the database.
    See these workarounds in the Microsoft Knowledge Base article Q242010 in the "References" section.NOTE: There are known issues when connecting to Access 2000 on certain localized versions of Visual Basic 6.0 Service Pack 4. This is scheduled to be fixed in Visual Basic 6.0 Service Pack 5. However, this bug is fixed for the English version (North America) of Visual Basic 6.0 Service Pack 4. STATUS
    Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug was corrected in Visual Studio 6.0 Service Pack 4.For additional information about Visual Studio service packs, click the article numbers below to view the articles in the Microsoft Knowledge Base: Q258648 INFO: Visual Studio 6.0 Service Pack 4, What, Where, Why 
    Q258649 HOWTO: Tell That Visual Studio 6.0 Service Pack 4 Is Installed 
    You can download Visual Studio Service Pack 4 from the following Microsoft Web site: 
    Visual Studio Product UpdatesMORE INFORMATIONSteps to Reproduce Using the Standard Data Control
    In Visual Basic, create a new Standard EXE project. Project1 is created by default. Form1 is added by default.
    Place a Data control onto Form1. Data1 is created by default.
    Set the DatabaseName property of the Data control to an Access 2000 database.
    Attempt to set the RecordSource property of the Data control by clicking the drop-down list, and note that the error message in the "Symptoms" section appears. 
    Steps to Reproduce Using the Data Form Wizard
    In Visual Basic, create a new Standard EXE project. Project1 is created by default. Form1 is added by default.
    If the Data Form Wizard is not listed in Add-Ins menu, do the following:
    From the Add-Ins menu, select Add-In Manager.
    In the list of Available Add-Ins, select Data Form Wizard.
    Click to check the Loaded/Unloaded checkbox.
    Click OK, and note that the Data Form Wizard is now on the Add-Ins menu.
    From the Add-Ins menu, select Data Form Wizard.
    At the Introduction screen, click Next.
    At the Database Type screen, select Access, and then click Next.
    On the Database screen, click Browse, navigate to your Access database, and then click Open. When you click Next, the error message in the "Symptoms" section is displayed. REFERENCESQ238401 PRB: Unrecognized Database Format Error Upgrading to Access 2000 
    Q242010 PRB:The Data Form Wizard May Not Open an Access 2000 Database Additional query words: sp4 Keywords : kbCtrl kbDatabase kbDataBinding kbJET kbMDAC kbVBp600bug kbGrpVBDB kbGrpMDAC kbDSupport kbDAO360 kbMDAC250 kbVS600sp4fix 
    Version : WINDOWS:6.0 
    Platform : WINDOWS 
    Issue type : kbbug 
    Technology : 
    Last Reviewed: August 30, 2000
    © 2000 Microsoft Corporation. All rights reserved. Terms of Use.
     --------------------------------------------------------------------------------
    Send feedback to MSDN.Look here for MSDN Online resources. 
      

  3.   

    写在initinstance 中
    afxgetmodulestate()->m_dwversion = 0x0601;