Adodc1.ConnectionString = "provider=microsoft.jet.oledb.4.0;data source=d:\afty.mdb"Adodc1.RecordSource = "select * from  saftytj"

解决方案 »

  1.   

    必须用“provider=microsoft.jet.oledb.4.0”吗?用“provider=microsoft.jet.oledb.3.51”行吗?
      

  2.   

    Dim strCnn As String     '连接数据库字符串
        Dim strSql As String    'SQL查询语句
        
        '连接数据库字符串
        strCnn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\diaryadd.mdb;Persist Security Info=False"
        
        '查询语句
        strSql = "select * from card"
        
        '下面三条语句是激活ADO Recordset,使其可用
        rsTest.CursorLocation = adUseClient
        rsTest.LockType = adLockOptimistic
        rsTest.Open strSql, strCnn, , adCmdTable
      

  3.   

    用jet3.51不行,access2000的只能用jet4.0