Dim dt As Integer =Tables("固晶").Rows.Count Dim lcc As String = RibbonTabs("da")("search")("lot").Text Dim pcc As String = RibbonTabs("da")("search")("product").Text Dim filter As String With Tables("固晶") If lcc >"" Then filter = ("[LOT批号] Like '*" & lcc & "*'") Tables("固晶").Filter = filter End If End With