I am trying to open a recordset - ADO - that selects records on the basis of the first letter of a field eg. I want to find all the clients whose surname begins with "B". My SQL string works fine if I have
- I can see a client whose surname is Brown. However, if I write
or
the recordset is empty. It seems as though the "LIKE" operator is working as an "=" operator.
Any ideas about why this is happening and how it can be fixed.
Thanks, Doug.
Code:
...LIKE 'Brown'
- I can see a client whose surname is Brown. However, if I write
Code:
...LIKE 'B*'
Code:
...LIKE '*'
the recordset is empty. It seems as though the "LIKE" operator is working as an "=" operator.
Any ideas about why this is happening and how it can be fixed.
Thanks, Doug.