ACC1x: Parameter Queries, Wildcards, and SQL ServerID: Q92682
|
The asterisk (*) and the question mark (?) wildcard characters are not
valid in SQL Server parameter queries and thus are interpreted by SQL
Server as text. Unless these characters are present in the field
restricted by the parameter, the query will return an empty set.
Instead of using the asterisk (*) and the question mark (?) wildcard
characters in parameter queries, use the percent sign (%) and the
underscore (_), the SQL Server wildcard characters.
SQL Server uses the percent sign (%) and the underscore (_), the ANSI standard wildcard characters, whereas Microsoft Access uses the asterisk (*) and the question mark (?) wildcard characters. When executing a parameter query, Microsoft Access does not translate the wildcard equivalents; the string you type in the Query Parameters dialog box is passed verbatim to SQL Server. Microsoft Access translates only strings that are part of the QBE grid.
For more information, search for "parameter query" using the Microsoft Access Help menu.
Keywords : kbusage QryParm
Version : 1.0 1.1
Platform : WINDOWS
Issue type : kbinfo
Last Reviewed: March 12, 1999