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 / May 2005

Tip: Looking for answers? Try searching our database.

How to use the Like operator in Parametric queries?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Siamak - 13 May 2005 15:54 GMT
How do I use the Like operator in parametric queries which prompt the user to
enter part of the value for a field?
Ofer - 13 May 2005 16:02 GMT
Try that

SELECT Field1
FROM MyTable
WHERE Field1  Like ("*" & [Param] & "*")

> How do I use the Like operator in parametric queries which prompt the user to
> enter part of the value for a field?
fredg - 13 May 2005 16:09 GMT
> How do I use the Like operator in parametric queries which prompt the user to
> enter part of the value for a field?

To find records with the entered value anywhere in the field:
Like  "*" & [Enter phrase] & "*"

To find records with the entered value only at the end of the field:
Like  "*" & [Enter phrase]

To find records with the entered value only at the beginning of the
field:
Like  [Enter phrase] & "*"
Signature

Fred
Please only reply to this newsgroup.
I do not reply to personal email.

 
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.