M
Melissa
Same thing.
It seems to have a problem with this code:
Me.Filter = varFilter
When I go into the debug window this is the code that is highlighted.
--
Melissa
It seems to have a problem with this code:
Me.Filter = varFilter
When I go into the debug window this is the code that is highlighted.
--
Melissa
AccessVandal via AccessMonster.com said:Your original string was..
"([CSR] Like " '*" & Me.txtFilterCSR & "*')"
try to insert one ampersand like..
"([CSR] Like " & "'*" & Me.txtFilterCSR & "*')"
look at the single quote and double quotes.
I removed the parenthesis but it gives me the same message. Sometimes it
comes up with this error:
Syntax error (missing operator) in query expression ' AND ([CSR] = 'smit'
and sometimes it comes up with this one:
You can't assign a value to this object
If Not IsNull(Me.txtFilterCSR) Then
varFilter = (varFilter + " AND ") _
& "[CSR] = '" & Me.txtFilterCSR & "'"
End If
The plus should work, if it doesn't, change it to an ampersand.
If Not IsNull(Me.txtFilterCSR) Then
varFilter = (varFilter & " AND ") _
& "[CSR] = '" & Me.txtFilterCSR & "'"
End If