G
Guest
Good morning all,
I have a syntax error when nothing is listed in the field that starts
the filter. As long as there is a selection in the first field, all other
combinations have tested fine.
Syntax error (missing operator) in query expression '([Subject] Like * AND
[Key_word] Like '*blue*')
How I'm building the filter:
If Not IsNull(Me.subject) Then
strWhere = "[subject] = '" & Me.subject & "'"
Else
strWhere = "[subject] Like *"
End If
If Not IsNull(Me.key) Then
strWhere = strWhere & " AND [Key_word] = '" & Me.key & "'"
End If
Any suggestions?
I have a syntax error when nothing is listed in the field that starts
the filter. As long as there is a selection in the first field, all other
combinations have tested fine.
Syntax error (missing operator) in query expression '([Subject] Like * AND
[Key_word] Like '*blue*')
How I'm building the filter:
If Not IsNull(Me.subject) Then
strWhere = "[subject] = '" & Me.subject & "'"
Else
strWhere = "[subject] Like *"
End If
If Not IsNull(Me.key) Then
strWhere = strWhere & " AND [Key_word] = '" & Me.key & "'"
End If
Any suggestions?