I got this problem:
Run-time error '3831': The Multi-valued field '[Type]' cannot be used on a WHERE or HAVING clause
Here is my code:
Private Sub Command379_Click
Dim strsearch as String
Dim strText as String
strText = Me.TxtSearch.Value
strsearch = "Select * from qryInfo where (([Supplier Name] LIKE ""*" & strText & "*"") OR ([Type] LIKE ""*" & strText & "*""))"
Me.RecordSource = strsearch
End Sub
[Type]
consists of a multi-valued list.
I tried to put [Type].Value
but it didn't work too. It returned this message instead:
Runtime error 3126. Invalid bracketing of name '[qryInfo].[tblGeneralInfo].[Supplier Name]'
Can anyone please tell me how I can fix this please?