PDA

View Full Version : Having trouble with Calculated Field



Mark Starnes
November 11th, 2003, 10:59 AM
I'm having trouble capturing a part of a field. I think I know how it should be done, but it's not working. Here's a sample...


EMAILLINE (Source)
Adriana Montano (Adriana.Montano)

EMAILTAKE2 (Calculated Field)
Adriana Montano (Adriana.Montano)

The calculated field is...
Right(rtrim(EmailLine),(len(rtrim(emailline))-instr(rtrim(emailline),"(")))

I want the calculated field to be...
Adriana.Montano

Note - I've tried it without rtrim and that gives the same result.

Thanks for your help.

Mark

Mark Starnes
November 11th, 2003, 11:06 AM
Oops! I realized I had Instr backwards. Thank you for your patience with a newbie!

Mark

Grant Perkins
November 11th, 2003, 02:31 PM
Originally posted by Mark Starnes:
Oops! I realized I had Instr backwards. Thank you for your patience with a newbie!

Mark INSTR does that to you.

NEWBIES are cool. We have all been newbies. Most of us still are from time to time! ;) Sort of. I found something today that had not previously made meaningful neuronal connections. Hopefully it is now filed away for future use.

All the best,

Grant