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  

# character as text



 
 
Thread Tools Display Modes
  #1  
Old April 19th, 2007, 01:50 AM posted to microsoft.public.access.queries
Kevin
external usenet poster
 
Posts: 910
Default # character as text

I want to create a query to search for all records where a particular field
begins with the # character. My query criteria for this field is Like "#*"
but this produces nothing. I assume the # is reserved but I can't find what
the MS Access Escape character is. Any suggestions would be greatly
appreciated.
Thank you.
  #2  
Old April 19th, 2007, 02:26 AM posted to microsoft.public.access.queries
fredg
external usenet poster
 
Posts: 4,386
Default # character as text

On Wed, 18 Apr 2007 17:50:06 -0700, Kevin wrote:

I want to create a query to search for all records where a particular field
begins with the # character. My query criteria for this field is Like "#*"
but this produces nothing. I assume the # is reserved but I can't find what
the MS Access Escape character is. Any suggestions would be greatly
appreciated.
Thank you.


Enclose the # within brackets.
To find "#" at the start of the field:

Like "[#]*"

--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
  #3  
Old April 19th, 2007, 02:34 AM posted to microsoft.public.access.queries
Kevin
external usenet poster
 
Posts: 910
Default # character as text

I knew it would be something simple. Thank you very much.

"fredg" wrote:

On Wed, 18 Apr 2007 17:50:06 -0700, Kevin wrote:

I want to create a query to search for all records where a particular field
begins with the # character. My query criteria for this field is Like "#*"
but this produces nothing. I assume the # is reserved but I can't find what
the MS Access Escape character is. Any suggestions would be greatly
appreciated.
Thank you.


Enclose the # within brackets.
To find "#" at the start of the field:

Like "[#]*"

--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail

 




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 08:47 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.