请问如何动态查询多列的记录啊?
如题我的代码如下,是VB中根据LIST2中的内容确定需要查询的列,请教怎么改才对啊?
Dim bbl As String
Dim Record As New ADODB.Recordset
bbl = " & Trim(List2.List(0) & "
Dim I
For I = 0 To List2.ListCount - 1
bbl = bbl + "," + " & Trim(List2.List(I) & "
Next I
Record.Open "Select '" & Trim(bbl) & "' From 表1", objCn, adLockReadOnly, adLockReadOnly '检