你手中的DataGrid不支持ADODC,找带OLEDB版本的!

解决方案 »

  1.   

    应该 :Set DataGrid1.DataSource = Adodc1.recordset
    至于
    DataGrid1.Refresh就不需要了 。
      

  2.   

    搞不懂,为什么以下的代码就可以执行,问题的代码就不可以?   Dim strPath As String
       ' Change this path if needed.
       strPath = "C:\PIME2001\DATA.MDB"
       With Adodc1
          .ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
          "Persist Security Info=False;Data Source=" & strPath & _
          "; Mode=Read|Write"
          .CursorLocation = adUseClient
          .CursorType = adOpenStatic
          .CommandType = adCmdText
          .RecordSource = "SELECT * FROM EMPRESES"
          .Refresh
       End With
       DataGrid1.Refresh请赐教.