Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reducing a String of Letters in a Query!

Status
Not open for further replies.

dutchess

IS-IT--Management
Joined
Sep 9, 2003
Messages
6
Location
US
Does anyone know how to change in a query a six string line to a three string line.


Example: I am sorting cities and last three of the zip code "WIL711"
I would like the the query to return a value of just "WIL".

 
MyThree:Left([FieldName],3)

That should do it.

Paul
 
use
Code:
left([yourField],3)
 
Sorry, just in case that's not quite enough info, you would put this expression on the Field line in your query and substitute the name of your string field for [FieldName] in the expression.

Paul
 
That worked great!!! Thank You!!!!
 
Sorry for crossposting Paul!
 
nicsin, no problem. There's no way to avoid doing that sort of thing.

Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top