On screen UI, use unbound field to enter mix of ASCII and Unicode character text string for searching. On the screen, it is correct - for example "White白色". But, on VBA code, the Unicode character of the unbound filed becomes to '?' and cannot be used for searching - "White??" for the above example. How to get the mixed ASCII and Unicode string as on the screen for VBA code?
Below is my code. Me.txName is unbound text field, fiterstr is subform filter. It works, if name is all ASCII. It will search '?', if Unicode is entered.
Dim filterstr As String
If Me.txName <> "" Then
filterstr = "(Customer.Company LIKE '*" & Me.txName & "*')"
End If
Me.sfmCustomerList4Search.Form.Filter = filterstr