我用Data 控件打开一个已知密码的数据库,当选择RecordSource时,出现上述提示,使我无法选择表。
请问是怎么回事,如何解决这个问题??

解决方案 »

  1.   

    我觉得于”isam“没有任何关系,可能是你的数据库不被vb6.0支持。你应该改变数据库。比如,将office 2000 的数据库转化为office 97 的数据库
      

  2.   

    在装VB的时候,请在安装时选择自定义安装,在选择选项的时候点开数据选项把ISAM选上,默认安装时是不装的,前几天刚碰到类似的问题
      

  3.   

    请问如何正确安装ISAM,我已经安装了VB6.0以后?
      

  4.   

    另外,如果数据库没有密码的情况下,就能正常打开,可是一涉及到密码就说什么"找不到ISAM"没密码的数据库是Access 2000,我看有密码的是同一个数据库,加了个登陆密码而已。
      

  5.   

    我认为"找不到ISAM"的原因是你的数据库连接有问题。比如不是Acess2000创建的数据库,在选择Connect的时候就不能选择Acess2000型的数据库,只能选择Acess类型。不然的话就会出错提示"找不到ISAM"。  还有其他原因,总之就是数据库连接的问题上。还有就是数据库驱动不对。也请注意的。有密码的时候可以用Pw=“”来操作阿!很多例程都有的。一般不会出这个"找不到ISAM"问题的。
      

  6.   

    我的主要问题就是无法打开带有密码的数据库:
    例子:Access2000数据库db1.mdb 密码:1234我无论怎么选择Access 还是Access2000,无论在connect 里设置Access;pw="1234"
    还是设置Access2000;pw="1234"还是没有引号,当选择RecordSource都出现“找不到可安装的ISAM”的问题。~~请帮帮我~~我另开贴求助~~谢谢!!
      

  7.   

    实在要用data控件的话,引用Dao3.6!Intrinsic Data Control Is Usable with Access 2000 Databases
    At 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. 
      

  8.   

    不行就安装个Mdac2.X吧。或者你安装VB的时候没有选择支持数据库?!(晕)
    在程序里Access2000;pw="1234"可以的啊!我用过的。
      

  9.   

    狠方法:在Access2000中将数据库db1.mdb转换成旧版本的access文件,具体请参考:
    http://expert.csdn.net/Expert/topic/1958/1958522.xml?temp=4.378909E-02
      

  10.   

    谢谢各位指点,问题已经得到圆满解决~~!我的方法是Connect=";pwd=1234"
    谢谢各位!!结贴~放分~~