Dim i As Integer,Dim f As Boolean
For i = 0 To Me.list0.ListCount - 1
If Me.list0.Column(0, i)=me.text1 Then
f=true
End If
Next i
if f=true then msgbox "OK"
dim Str as string
Dim i As Integer
For i = 0 To Me.list0.ListCount - 1
str=str & Me.list0.Column(0, i) & ","
Next i
if len(str)>0 then
str=left(str,len(str)-1)
end if
通过LIKE 或IN 语句对str的值进行判断即可