Last Word in Field

  • Thread starter Thread starter Stephen
  • Start date Start date
S

Stephen

How can I always display the last word in a field?

I have a field that contains a value of several words
(i.e. 1 - Van Joe, or 2 - Van Phil). I want to display
only the last word, which can vary in length.

Thanks in advance.

Stephen
 
Try the following expression in the Control Source property of a textbox:

=Mid([MyField], InStrRev([MyField], " ") +1)


hth,
 

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

Back
Top