display part of a field

A

alecgreen

Hi

I have a text field within my query that I want to display part of:
for example "microsoft" and I just want to display "micro"

Many Thanks

Alec
 
A

Allen Browne

alecgreen said:
I have a text field within my query that I want to display part of:
for example "microsoft" and I just want to display "micro"

Use:
- Left() if you want the left-most characters;
- Mid() if you want characters from the middle;
- Right() if you want the right-most characters.

You may also need to use:
- Len() to calculate how long it is;
- Instr() to locate where one string is found in another.

If you are trying to parse particular words from the string, this may help:
http://allenbrowne.com/func-10.html
For example, after copying the function into your database, you would type
this expression into the Field row in query design to parse the last word
from a field named F1:
ParseWord([F1], -1)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top