I'm trying to use the "Like" operator. "Like" works as expected in an Access query, but when I try to use it in VB code it returns only an exact match. For example,
would return records with John Doe, but
returns nothing, as do
and
.
also returns nothing. Needless to say, there are no records that are exactly 'J*', 'John D', 'John D*' or 'John Do?'.
Any work-arounds or explanations of what I'm doing wrong would be appreciated!
Code:
Like 'John Doe'
Code:
Like 'John D'
Code:
Like 'John D*'
Code:
Like 'John Do?'
Code:
Like 'J*'
Any work-arounds or explanations of what I'm doing wrong would be appreciated!