我用ado连接Excel,测试连接时候说"不可识别的数据库格式",我选的Jet4.0,求教怎么回事,怎么办?

解决方案 »

  1.   

    用ado连接excel,不能直接连,你需要改一下连接选项里的扩展属性,新添加一个excel,就可以了。
      

  2.   

    设置属性ConnetionString 选择 Microsoft Jet 4.0 OLE DB provider Select or enter a datasorce name -> 选择你要打开Excel文件 User name默认是Admin 密码默认为空,可以不用理会 Extended properties 设为:Excel 8.0 sql语句 select * from [yourtablename](注意要有[])
      

  3.   

    用OLE DB Product FOR ODBC Driver