Dim tbl As Table = Tables("客户查询_table1")
Dim Filter As String
With e.Form.Controls("textbox15")
If .Value IsNot Nothing Then
If Filter >"" Then
Filter = Filter & " And "
End If
Filter = "([客户名称] like '%" & .Value & "%' Or [客户id] like '%" & .Value & "%')" & “性别 = ‘男’”
If tbl Is Nothing Then
msgbox("没有数据")
Else
tbl.DataTable.loadFilter = Filter
tbl.DataTable.load
End If
End If
End With
为啥会出现”性别附近有语法错误“?