Microsoft Office Forums


Reply
Thread Tools Display Modes

an SQL query to search partial matches

 
 
aa
Guest
Posts: n/a
 
      01-29-2007, 06:05 PM
what would be syntax for an SQL query to search partial matches, compatible
with Access?
I tried WHERE (fieldname LIKE "something") - it did not cause an error, but
returns an empty recordset though there are entries in the field containing
"something" as substring



 
Reply With Quote
 
 
 
 
MH
Guest
Posts: n/a
 
      01-29-2007, 06:05 PM
WHERE MyField LIKE "*MySubstring*"

The asterix is a wildcard character that represents any number (or none) of
characters.

MH

"aa" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> what would be syntax for an SQL query to search partial matches,
> compatible
> with Access?
> I tried WHERE (fieldname LIKE "something") - it did not cause an error,
> but
> returns an empty recordset though there are entries in the field
> containing
> "something" as substring
>
>
>



 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Search for partial values David J. Infopath Newsgroup 2 02-16-2008 10:07 PM
How do you search for partial word matches? OneNote Onenote Newsgroup 0 02-13-2008 07:22 PM
an SQL query to search partial matches aa Access Newsgroup 2 01-30-2007 01:13 PM
Outlook 2007 Search always returns no matches Tom Outlook Newsgroup 3 01-24-2007 10:01 PM
Creating a custom search folder that matches on multiple conditions... jihohan@gmail.com Outlook Newsgroup 1 02-24-2005 07:17 PM



All times are GMT. The time now is 08:08 PM.
Microsoft Office Forums is not affiliated with Microsoft Corporation.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92