Private Sub Command1_Click()
conn.Open "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=his;Data Source=abcd\HIS"
strsql = "select * from 药品基本信息 where 药品编号 like '" & Text1 & "'"
rs.Open strsql, conn
Set DataGrid1.DataSource = rs
End Sub