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 / June 2007

Tip: Looking for answers? Try searching our database.

Criteria Question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Florida Analyst - 25 Jun 2007 19:35 GMT
*Access Beginner*

If I contain a set of numbers that are five digits in a column,
I.E. 02996, 03978, V3000, 02979
And I want to exlude every value that starts with 029 (by first 3 digits
only, last two are not important) how will that be be expressed in the
criteria field.

Thank you,
FA
John W. Vinson - 25 Jun 2007 20:10 GMT
>*Access Beginner*
>
[quoted text clipped - 6 lines]
>Thank you,
>FA

Use a query criterion of

NOT LIKE "029*"

or, to prompt the user instead of hardcoding,

NOT LIKE [Enter three digits to exclude:] & "*"

Note that this field must be of Text datatype, not Number.

            John W. Vinson [MVP]
Jerry Whittle - 25 Jun 2007 20:15 GMT
Not Like "029*"
Signature

Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.

> *Access Beginner*
>
[quoted text clipped - 6 lines]
> Thank you,
> FA
 
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.