Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Queries / April 2008

Tip: Looking for answers? Try searching our database.

how do I search for an * in a text field?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jahfish - 24 Apr 2008 11:14 GMT
how do I search for an * in a text field? I mean the character * (ASCII42)
rather than a wild card. I've tried 'like chr(42)' in the query parameter but
this returns reocrds that don't have a * in the text field
John Spencer - 24 Apr 2008 13:48 GMT
To find an asterisk anywhere in the field you would use
  Like "*[*]*"
To find a field that is exactly on asterisk
  = "*"
or use
  Like "[*]"

The use of the square brackets tells the SQL engine to look for exactly what
is in the brackets or it lets you specify a range of characters.  Check out
the wild card help - in the help dialog type "wild card"

John Spencer
Access MVP 2002-2005, 2007-2008
Center for Health Program Development and Management
University of Maryland Baltimore County

> how do I search for an * in a text field? I mean the character * (ASCII42)
> rather than a wild card. I've tried 'like chr(42)' in the query parameter but
> this returns reocrds that don't have a * in the text field
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.