Dim drp As WinForm.DropDownBox = e.Form.Controls("DropBox1")
If drp.DroppedDown Then '如果下拉窗口已经打开
Dim tbl As Table = Tables("窗口3_Table1")
If drp.Text = "" Then '如果内容为空
tbl.Filter = "" '显示所有客户
MessageBox.Show(tbl.Filter)
Else '否则根据输入内容进行模糊筛选
Dim txt As String = "'%" & drp.Text & "%'"
tbl.Filter = "客户编号 Like " & txt & " Or 客户名称 Like " & txt & " Or 地址 Like " & txt & " Or 联系人 Like " & txt
MessageBox.Show(tbl.Filter)
End If
End If
看看显示什么