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 2006

Tip: Looking for answers? Try searching our database.

Query for the character - in a field withing a table

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Monica - 06 Apr 2006 18:12 GMT
I am fairly new to Access. I need to query for special characters in fields
of a table. I have been successful in querrying for & ^ ( ) ones that HL7
will not take for interfacing. I am trying to query for a - but it will not
work. I type "-" just as I did the above. Is there something different I need
to do to query this character? It is defined as a text field in the table.
Thanks much in advance!
Monica - 06 Apr 2006 18:15 GMT
This is how I currently have the query that works:Like "*&*" Or Like "*\*" Or
Like "*/*" Or Like "*~*" Or Like "*(*" Or Like "*)*" Or Like "*^*" Or Like
"*[*" Or Like "*]*"

> I am fairly new to Access. I need to query for special characters in fields
> of a table. I have been successful in querrying for & ^ ( ) ones that HL7
> will not take for interfacing. I am trying to query for a - but it will not
> work. I type "-" just as I did the above. Is there something different I need
> to do to query this character? It is defined as a text field in the table.
> Thanks much in advance!
Monica - 06 Apr 2006 18:23 GMT
I found the answer, it should be "*-*" I dont know why the others dont need
the astrisk?

> I am fairly new to Access. I need to query for special characters in fields
> of a table. I have been successful in querrying for & ^ ( ) ones that HL7
> will not take for interfacing. I am trying to query for a - but it will not
> work. I type "-" just as I did the above. Is there something different I need
> to do to query this character? It is defined as a text field in the table.
> Thanks much in advance!
Monica - 06 Apr 2006 18:25 GMT
Never mind...Im loosing it today. They are all that way. Way too much to do,
need to slow down and look again.

> I am fairly new to Access. I need to query for special characters in fields
> of a table. I have been successful in querrying for & ^ ( ) ones that HL7
> will not take for interfacing. I am trying to query for a - but it will not
> work. I type "-" just as I did the above. Is there something different I need
> to do to query this character? It is defined as a text field in the table.
> Thanks much in advance!
 
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



©2008 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.