我先用ADO绑定了DATAGRID控件,设置了一次DATAGRID.DATASOURCE后,我要清空DATAGRID中的数据,重新绑定,因为我改变了查询条件,要显示的字段和数据都有所改变,可是为什么我的数据是清空了,可是我重新设置ADODC1.RECORDSOURCE=“”,SET DATAGRID1.DATASOURCE=NOTHING,单步调试后,发现DATAGRID中的数据是清空了,可是重新设置后,他们的数据还是原来的没有设置为NOTHING  时的数据
If Adodc1.RecordSource <> "" Then
    If Adodc1.Recordset.RecordCount <> 0 Then
        Adodc1.RecordSource = ""
        Set DataGrid1.DataSource = Nothing
    End If
End If    
If Combo3.Text = "全塑市内通信电缆" Then
        Adodc1.RecordSource = "select code,model,num,unit,prop1,prop2,prop3,prop4,re,total from " & databasename & " where cardid='" & txt_kpbh & "'"
Set DataGrid1.DataSource = Adodc1
    End If