If Forms("窗口1").Opened Then Dim txt As String = e.Text Dim abc As String =CurrentTable.Current("第二列") Dim tbl As Table = Tables("窗口1_Table1") If txt = "" Then tbl.Filter = "" Else If txt.contains("*") txt = "'*" & txt.replace("*","[*]") & "*'" ' Else txt = "'*" & txt & "*'" End If tbl.Filter = "省市 Like " & txt & " And 县市 Like '*" & abc & "*'" End If End If
|