

These index types are not equally efficient, so it makes sense to dig into the subject matter and figure out what is best when. Access developer and VBA programming help center (FMS) Both index type can handle LIKE as well as ILIKE.' Call EnumFields to print the contents of the Set rst = dbs.OpenRecordset("SELECT LastName," _ ' Return a list of employees whose names begin with

' Modify this line to include the path to Northwind It calls the EnumFields procedure, which you can find in the SELECT statement example. This example returns a list of employees whose names begin with the letters A through D. The following table shows how you can use Like to test expressions for different patterns. The following example returns data that begins with the letter P followed by any letter between A and F and three digits: Like "P#" The underscore represents a single number or character. There are two wildcards used in conjunction with the LIKE operator: The percent sign () The underscore () The percent sign represents zero, one or multiple characters. In a parameter query, you can prompt the user for a pattern to search for. Description: The SQL LIKE operator is used to compare a value to similar values using wildcard operators. For example, if you enter Like "C*" in an SQL query, the query returns all field values beginning with the letter C. In a parameter query, you can prompt the user for a pattern to search for. For example, if you enter Like 'C' in an SQL query, the query returns all field values beginning with the letter C. In an expression, you can use the Like operator to compare a field value to a string expression. In an expression, you can use the Like operator to compare a field value to a string expression. For pattern, you can specify the complete value (for example, Like "Smith"), or you can use wildcard characters to find a range of values (for example, ), or you can use wildcard characters to find a range of values (for example, Like "Sm*"). Use the Like operator to find values in a field that match the pattern you specify. String or character string literal against which expression is compared. The Like operator syntax has these parts: Part Compares a string expression to a pattern in an SQL expression.
