to hnlzh:客戶端可以,但我的记录有几十万条,所以要用aduserserver.

解决方案 »

  1.   

    PRB: DataGrid Not Populated Using Jet.OLEDB.4.0 Provider and ADO Server Side Cursor
    http://support.microsoft.com/support/kb/articles/q224/1/92.asp.Properties("IRowsetIdentity")=True 
      

  2.   

    Dim adoConnection As New ADODB.Connection
    adoConnection.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\NWind2K.mdb;Persist Security Info=False"
    Dim adoRecordset As New ADODB.Recordset
    Set adoRecordset.ActiveConnection = adoConnection
    adoRecordset.Properties("IRowsetIdentity").Value = True
    adoRecordset.Open "SELECT * FROM 产品", , adOpenKeyset
    Set DataGrid1.DataSource = adoRecordset