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

RTrim to first blank space 1

Status
Not open for further replies.

WestView

Technical User
Jan 7, 2003
67
US
Hello all,

I have a field that generally holds to this format: FirstName <space> LastName <space> E-Mail Address. I need to remove everything but the e-mail address.

I thought the best way to accomplish this was to use something like the RTrim() function to the first blank space (end of last name). Can't get the syntax right.

Please HELP!!!

Thanks,

- Tom
 
You may try something like this in the query grid:
EMail: Mid([your field],1+InStrRev([your field],' '))

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 

PHV,

Excellent! Worked like a charm!!!

Many Thanks,

- Tom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top