Reputation: 1577
I tryed some wildcards in Access in Where statement, but they don't works. For example:
This query SELECT staff.* FROM staff;
returns:
I tryed to do a query with wildcard SELECT staff.* FROM staff WHERE (staff.s_name LIKE "A%");
but it returns an empty table:
What is the reason? My wildcard doesn't work
(s_name is the second column)
(look that "firstname" is the tag of "s_name" only for the view)
Upvotes: 0
Views: 3415
Reputation: 20362
No, no, no, use '*', not '%'. Or, use 'Like'.
https://www.techonthenet.com/access/queries/like.php
https://www.techonthenet.com/access/queries/like2007.php
For instance:
Like 'm*' Result: all values that start with m
Like 'm' Result: all values that contain m
Like '*m' Result: all values that end with m
Upvotes: -1
Reputation: 26896
Wildcard character in Access is *
, not %
unlike in SQL Server.
See MSDN for details.
Upvotes: 4