Solved

Newbie ?: Truncate Text Field

Posted on 2004-04-21
5
307 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Crystal Reports - pulling data for fiscal year 2 47
Crystal report running 3 42
Crystal Reports Swap Columns 2 51
Crystal Reports last day of month 2 45
I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

863 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now