A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How to find text that is surrounded by a wild card, specificly an



 
 
Thread Tools Display Modes
  #1  
Old May 25th, 2010, 09:36 PM posted to microsoft.public.access.queries
Marshall Barton
external usenet poster
 
Posts: 5,361
Default How to find text that is surrounded by a wild card, specificly an

Dan wrote:

I am looking for a way to query for the following:

*T*

The problem is the T is surrounded by an * which is a wild card. It pulls
all the records with a T included. But I literally want to find all records
with *T* (with the * on both sides of the T). I found out you can find all
records with an * by running a query for the following:

*[*]* (which is cool. But I want to find an exact match of *T* )


Like "[*]T[*]"

--
Marsh
MVP [MS Access]
  #2  
Old May 25th, 2010, 10:01 PM posted to microsoft.public.access.queries
dan
external usenet poster
 
Posts: 1,408
Default How to find text that is surrounded by a wild card, specificly an

I am looking for a way to query for the following:

*T*

The problem is the T is surrounded by an * which is a wild card. It pulls
all the records with a T included. But I literally want to find all records
with *T* (with the * on both sides of the T). I found out you can find all
records with an * by running a query for the following:

*[*]* (which is cool. But I want to find an exact match of *T* )

Please help !
  #3  
Old May 26th, 2010, 12:01 AM posted to microsoft.public.access.queries
KenSheridan via AccessMonster.com
external usenet poster
 
Posts: 1,610
Default How to find text that is surrounded by a wild card, specificly an

Shouldn't that be:

Like "*[*]T[*]*"

Ken Sheridan
Stafford, England

Marshall Barton wrote:
I am looking for a way to query for the following:

[quoted text clipped - 6 lines]

*[*]* (which is cool. But I want to find an exact match of *T* )


Like "[*]T[*]"


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...eries/201005/1

  #4  
Old May 26th, 2010, 04:15 AM posted to microsoft.public.access.queries
Marshall Barton
external usenet poster
 
Posts: 5,361
Default How to find text that is surrounded by a wild card, specificly an

KenSheridan via AccessMonster.com wrote:

Shouldn't that be:

Like "*[*]T[*]*"



Yes, it should. Glad you caught that Ken.

--
Marsh
MVP [MS Access]
  #5  
Old May 28th, 2010, 04:14 PM posted to microsoft.public.access.queries
dan
external usenet poster
 
Posts: 1,408
Default How to find text that is surrounded by a wild card, specificly

Thank you so much. It worked. That was a great help.

Have a great day.

"Marshall Barton" wrote:

KenSheridan via AccessMonster.com wrote:

Shouldn't that be:

Like "*[*]T[*]*"



Yes, it should. Glad you caught that Ken.

--
Marsh
MVP [MS Access]
.

 




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 Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:33 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.