My SQL query is as follows:
SELECT * FROM Suppliers
WHERE SupplierName
LIKE 's%';
When I submit this query on W3 School's TryIt Editor (v1.2) (http://www.w3schools.com/sql/trysql.asp?filename=trysql_select_like), it returns a number of records where the SupplierName begins with the letter 'S', as expected.
However, when I run this query on my own database in Access 2013, it doesn't return any records, even though my table name and field name are identical to W3's sample.
Queries not using 'LIKE' seem to work ok, for example:
SELECT * FROM Suppliers
WHERE SupplierName="Part Supplier, Inc.";
returns the appropriate record(s). It is only when 'LIKE' is used that Access returns no records at all.
My question is, is there any reason why LIKE queries don't return any records? The back-end data source is a Microsoft JET database (this is a relatively small database - no need for full SQL Server), but I don't think this should make a difference. Access doesn't complain about syntax or throw an error when I execute the query.