回复 7楼 Fulailailai
已解决
休息了一天后重新清理了一遍思路然后查看了一下代码才发现忘了加分隔府","代码如下:
Dim strCond
For i = 0 To List1.ListCount - 1
strCond = Trim(List1.List(i))
condition1 = condition1 & strCond &
","'在这忘了加分隔府","
Next
ilen = Len(condition1)
Adodc1.ConnectionString = adoCon
Adodc1.RecordSource = "select " + Left(condition1, ilen - 1) + " from MBDA where 户主姓名 like '%" + Trim(Text1.Text) + "%'"
Adodc1.Refres