Solved

Newbie ?: Truncate Text Field

Posted on 2004-04-21
5
308 Views
Last Modified: 2008-03-17
Thanks Ahead of time:

I am presuming this is an easy one.
I have an e-mail field that I would like to remove the e-mail extension.  
Example:
"abc123@pleasehelp.com" into just "abc123"

Any help appreciated.
0
Comment
Question by:pmickelson
  • 2
  • 2
5 Comments
 
LVL 1

Expert Comment

by:AngelRider
ID: 10882722
Create yourself a formula along the lines of the following:

Left({email-field}, 1, InStr({email-field}, '@') - 1)

That should do you.
0
 
LVL 42

Accepted Solution

by:
frodoman earned 50 total points
ID: 10882855
That actually won't work.  You'll need either this:

Left({email-field}, InStr({email-field}, '@') - 1)

or this:

Mid({email-field}, 1, InStr({email-field}, '@') - 1)


Both give the same results.
0
 
LVL 1

Expert Comment

by:AngelRider
ID: 10883061
Heh heh, 'scuse my typo..
0
 

Author Comment

by:pmickelson
ID: 10883130
THANK YOU, THANK YOU, THANK YOU!
0
 
LVL 42

Expert Comment

by:frodoman
ID: 10887632
Glad I could help.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question