ACC2000: How to Use the LIKE Operator in Parameter QueriesID: Q209823
|
This article shows you how to create a parameter query to search for all the records in a table that begin with, or that contain, a certain letter.
An easy way to search for records that begin with a certain letter is to
create a parameter query that prompts for a character to search for. You can use the LIKE operator with the wildcard character (*) to accomplish this task. This example uses the Employees table in the sample database Northwind.mdb.
LIKE [Enter the first char to search by: ] & "*"
-or-
LIKE "*" & [Enter any char to search by: ] & "*"NOTE: The Parameters dialog box is a fixed width so all the characters that you type may not display.
For more information about parameter queries, click Microsoft Access Help on the
Help menu, type "what is a parameter query and when would you use one" in the Office Assistant or the Answer Wizard,
and then click Search to view the topic.
Additional query words: inf
Keywords : kbdta QryParm
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbhowto
Last Reviewed: May 13, 1999