ACC2002: FindFirst that uses LIKE behaves differently in DAO snapshots and DAO dynasets (282383)
The information in this article applies to:
This article was previously published under Q282383 Moderate: Requires basic macro, coding, and interoperability skills.
This article applies only to a Microsoft Access database (.mdb).
SYMPTOMS
When you perform a search that uses the FindFirst method and LIKE without a wildcard character ("*"), you get different results in a DAO snapshot recordset and a DAO dynaset recordset. Using a DAO snapshot, the search acts as if the wildcard character ("*") was added to the end of the search string. For example, in a table that contains the names Greg, Jacob, Nick, John, Joe, and Michael, searching for "LIKE Jaco" finds a match in a DAO snapshot. However, FindFirst does not find a match in a DAO dynaset.
RESOLUTION
If you want the search to act as if it appends the wildcard character ("*") to the end of your search string, use a DAO snapshot.
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
Modification Type: | Minor | Last Reviewed: | 2/1/2006 |
---|
Keywords: | kbbug kbnofix KB282383 |
---|
|