Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: Uppercase and * in search query

Started 3 months, 1 week ago by Wind54Surfer
Hi all, I am using the following: If Me.txtDescription "" Then varWhere = varWhere & "[Description] LIKE """ & Me.txtDescription & "*"" AND " to search but have two problems: 1-doesn't work with uppercase words 2-doesn't work unless using "*", if word is in middle of sentence I adapted the code from a sample found in the web, don't know how to make changes. ...
Site: Microsoft Office (Excel, Word) forum - OfficeFrustration  Microsoft Office (Excel, Word) forum - OfficeFrustration - site profile
Forum: Running & Setting Up Queries  Running & Setting Up Queries - forum profile
Total authors: 3 authors
Total thread posts: 6 posts
Thread activity: no new posts during last week
Domain info for: officefrustration.com

Other posts in this thread:

John Spencer replied 3 months, 1 week ago
Access is NOT case-sensitive so you can't use the standard comparison operators to search. If you are looking for a word (or string) anywhere in the Description field varWhere = varWhere & "[Description] LIKE ""*" & Me.txtDescription & "*"" AND " If you really need to do a case-sensitive search for a word anywhere in the string you are going to have to use some VBA. Simplest ...

Dale Fye replied 3 months, 1 week ago
When you say "doesn't work with uppercase words" I assume you mean that if you are looking for a word that is in all uppercase, it is returning records where the word is in lower or mixed case, and not just those where the word appears in all caps. Is that correct? Unfortunately, Access searches are not case sensitive, so you are going to get records in your search results which ...

Dale Fye replied 3 months, 1 week ago
BTW, depending on the formatting of the string you are going to search, you might want to consider removing all of the punctionation marks in the string being searched and replacing them with spaces. If the word you are searching for is wrapped by a punctuation mark, it will not pass a binary comparison. I would add lines similar to the following for all the major punctuation. ...

Dale Fye replied 3 months, 1 week ago
Learn something new every day. Has the compare parameter been around forever, or was it added in 2007. Turns out I've been doing it the hard way all this time. ---- HTH Dale "John Spencer" wrote: Access is NOT case-sensitive so you can't use the standard comparison operators to search. If you are looking for a word (or string) anywhere in the Description field...

John Spencer replied 3 months, 1 week ago
As far as I know it has been around since at least Access 97. And Probably before that. John Spencer Access MVP 2002-2005, 2007-2009 The Hilltop Institute University of Maryland Baltimore County Dale Fye wrote: Learn something new every day. Has the compare parameter been around forever, or was it added in 2007. Turns out I've been doing it the hard way all this time....

 

Top contributing authors

Name
Posts
Dale Fye
3
user's latest post:
Uppercase and * in search query
Published (2009-09-28 15:06:00)
Learn something new every day. Has the compare parameter been around forever, or was it added in 2007. Turns out I've been doing it the hard way all this time. ---- HTH Dale "John Spencer" wrote: Access is NOT case-sensitive so you can't use the standard comparison operators to search. If you are looking for a word (or string) anywhere in the Description field varWhere = varWhere & "[Description]...
John Spencer
2
user's latest post:
Uppercase and * in search query
Published (2009-09-28 16:57:00)
As far as I know it has been around since at least Access 97. And Probably before that. John Spencer Access MVP 2002-2005, 2007-2009 The Hilltop Institute University of Maryland Baltimore County Dale Fye wrote: Learn something new every day. Has the compare parameter been around forever, or was it added in 2007. Turns out I've been doing it the hard way all this time. ---- HTH Dale
Wind54Surfer
1
user's latest post:
Uppercase and * in search query
Published (2009-09-28 03:29:00)
Hi all, I am using the following: If Me.txtDescription "" Then varWhere = varWhere & "[Description] LIKE """ & Me.txtDescription & "*"" AND " to search but have two problems: 1-doesn't work with uppercase words 2-doesn't work unless using "*", if word is in middle of sentence I adapted the code from a...

Related threads on "Microsoft Office (Excel, Word) forum - OfficeFrustration":

Related threads on other sites:

Thread profile page for "Uppercase and * in search query" on http://www.officefrustration.com. This report page is a snippet summary view from a single thread "Uppercase and * in search query", located on the Message Board at http://www.officefrustration.com. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity