如何将数据库中select的内容给一个数组?急求
Type memberinfom_bianhao As String * 2
m_xingming As String * 10
m_yingwendaihao As String * 10
m_mingcheng As String * 20
m_bochang As String * 3
End Type
Dim rs As adodb.Recordset
Dim cn As adodb.Connection
Dim member() As memberinfo
Set cn = New adodb.Connection
cn.Open "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=" & App.Path & "\xiangmuku.mdb"
Set rs = New adodb.Recordset
rs.CursorLocation = adUseClient
rs.Open Trim$("select * from 检验项目库 where 项目组='" & Trim(Combzuhe.Text) & "'"), cn, adOpenDynamic, adLockOptimistic
msgs = "查询到" & rs.RecordCount & "条记录"
接下来该怎么赋值呢?我本意是用一个二维数组来记录我所sel中的记录