dbTalk Databases Forums  

WIldcard searching

comp.databases.ms-access comp.databases.ms-access


Discuss WIldcard searching in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Duncan
 
Posts: n/a

Default WIldcard searching - 11-10-2010 , 03:38 PM






Hi there
I have setup a search form that runs a selected query after a name
(text string) is enter.
Code from query - Like [Forms]![frmNameQueryMenu]![TextName]
eg An exact search happens for "Green" unless "*Green*" is entered.

It would be a simplier and tidy if only "Green" was entered.
is there a solution I have overlooked?

Cheers
Duncan

Reply With Quote
  #2  
Old   
paii, ron
 
Posts: n/a

Default Re: WIldcard searching - 11-10-2010 , 03:53 PM






"Duncan" <duncanjx (AT) optusnet (DOT) com.au> wrote

Quote:
Hi there
I have setup a search form that runs a selected query after a name
(text string) is enter.
Code from query - Like [Forms]![frmNameQueryMenu]![TextName]
eg An exact search happens for "Green" unless "*Green*" is entered.

It would be a simplier and tidy if only "Green" was entered.
is there a solution I have overlooked?

Cheers
Duncan
Like "*" & [Forms]![frmNameQueryMenu]![TextName] & "*"

Reply With Quote
  #3  
Old   
Duncan
 
Posts: n/a

Default Re: WIldcard searching - 11-10-2010 , 04:14 PM



On Nov 11, 7:53*am, "paii, ron" <n... (AT) not (DOT) com> wrote:
Quote:
"Duncan" <dunca... (AT) optusnet (DOT) com.au> wrote in message

news:d7bbb080-388a-45af-aa74-259aec79e308 (AT) z22g2000pri (DOT) googlegroups.com...

Hi there
I have setup a search form that runs a selected query after a name
(text string) is enter.
Code from query *- Like [Forms]![frmNameQueryMenu]![TextName]
eg An exact search happens for "Green" unless "*Green*" is entered.

It would be a simplier and tidy if only "Green" was entered.
is there a solution I have overlooked?

Cheers
Duncan

Like "*" & [Forms]![frmNameQueryMenu]![TextName] & "*"
Oh my god that simple!!!!
Works a treat

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.