PC Review


Reply
Thread Tools Rate Thread

design query match anywhere?

 
 
Nooby
Guest
Posts: n/a
 
      24th May 2007
In the design query I want to match the letters "ABC" anywhere in the
column 'description'. I could not get instr to work by using:
InStr(description, "ABC")) > 0

How else can I match ABC (upper and lowercase) to anywhere in my
'description' column?
Thanks!

 
Reply With Quote
 
 
 
 
Douglas J. Steele
Guest
Posts: n/a
 
      24th May 2007
Are you saying you put that InStr bit as a criteria under your Description
field in the query designer? Try putting

Like "*ABC*"

as the criteria instead.

Alternatively, you could add a computed field to the query

InStr([Description, "ABC")

and then put >0 as the criteria for that field.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


"Nooby" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> In the design query I want to match the letters "ABC" anywhere in the
> column 'description'. I could not get instr to work by using:
> InStr(description, "ABC")) > 0
>
> How else can I match ABC (upper and lowercase) to anywhere in my
> 'description' column?
> Thanks!
>



 
Reply With Quote
 
Nooby
Guest
Posts: n/a
 
      24th May 2007
On May 24, 2:32 pm, "Douglas J. Steele"
<NOSPAM_djsteele@NOSPAM_canada.com> wrote:
> Are you saying you put that InStr bit as a criteria under your Description
> field in the query designer? Try putting
>
> Like "*ABC*"
>
> as the criteria instead.
>
> Alternatively, you could add a computed field to the query
>
> InStr([Description, "ABC")
>
> and then put >0 as the criteria for that field.
>
> --
> Doug Steele, Microsoft Access MVPhttp://I.Am/DougSteele
> (no e-mails, please!)
>
> "Nooby" <stwil...@writeme.com> wrote in message
>
> news:(E-Mail Removed)...
>
>
>
> > In the design query I want to match the letters "ABC" anywhere in the
> > column 'description'. I could not get instr to work by using:
> > InStr(description, "ABC")) > 0

>
> > How else can I match ABC (upper and lowercase) to anywhere in my
> > 'description' column?
> > Thanks!- Hide quoted text -

>
> - Show quoted text -


Excellent. Now I realize why the design wizard kept moving the Instr
to the top of the next column. I did not understand that. Thanks! Sam

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
Unhide query design grid in design view. CT25 Microsoft Access 3 2nd Feb 2009 12:38 AM
Partial Match query design Amy E Microsoft Access Queries 3 9th Apr 2008 10:32 PM
design query grid match anywhere question Nooby Microsoft Access Queries 2 24th May 2007 09:23 PM
Preview & Design don't match - no solutions yet! Joan Microsoft Frontpage 5 1st Mar 2005 11:14 PM
Zip Code Match Query - match on first five digits only matt Microsoft Access Queries 3 10th Jan 2004 11:33 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:43 PM.