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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query from de 3º caracter of the field

Status
Not open for further replies.

dtsousa

Technical User
Mar 9, 2001
1
0
0
PT
i need return data from a field where the user can be able to put 2 caracters in a box presented by the query and then
the query returns data from the 3º caracter of the item

example:
field 'article' with:
01tzc
01txc
01tyc
01tyc

the user puts in the box ´tx´and then the query returns the article '01txc'

The field 'article' has 700 articles

How i can i do this in a query?
 
First put a field in your query to select the first 2 characters of the field:

Expr1:left(Article,2) with a criteria of "tx"

then add another field in

Expr2: right(Article,len(Article)-2) - this allows for the right most portion of Article to be other that a fixed length.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top