[求助]ado与datagrid使用的问题
Private Sub Command1_Click() Dim mrc As New ADODB.Recordset Dim txtsql As String Dim msgtext As String txtsql = "select a.xmmc,a.gg from 药品目录 a" Set mrc = obj.ExecuteSql(txtsql, msgtext) Set DataGrid1.DataSource = mrc //错误出在这一句//
End Sub 执行时为何报错?"行集合不能作为标签"请问代码该怎么写?