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.

selection of data

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
michel - 15 May 2005 00:58 GMT
Hi, i'm trying to select certain records from my file. For example, how can I
select all records that end in '-5' or that contain a particular word

Thanks

Signature

michel

Ofer - 15 May 2005 01:25 GMT
Select * From MyTable Where MyField Like "*-5"
or
Select * From MyTable Where MyField Like "*AnyPartOfField*"

> Hi, i'm trying to select certain records from my file. For example, how can I
> select all records that end in '-5' or that contain a particular word
>
> Thanks
Jeff Boyce - 15 May 2005 01:26 GMT
Michel

A query can use a field that you add, based on a function like Right().  Add
a field in your query something like:
   Right([YourField],2)
then set the criterion for that field as "-5".

If you want a query criterion to look for a field that contains the word
"word", use something like the following for the criterion:

   Like * & word & *

And if you want to parameterize it, make it:

   Like * & [Enter your search string/word] & *

Signature

Good luck

Jeff Boyce
<Access MVP>

> Hi, i'm trying to select certain records from my file. For example, how can I
> select all records that end in '-5' or that contain a particular word
>
> Thanks
 
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.