DPS Posted September 5, 2007 Posted September 5, 2007 I am importing emails and the "from" field shows up in this format: john smith , I need to strip all the first characters and < > off so that the email reads: [email protected] Is there an easy way to do this?
comment Posted September 5, 2007 Posted September 5, 2007 There are a number of ways to do this, here's one: Let ( [ start = Position ( From ; "<" ; 1 ; 1 ) + 1 ; end = Position ( From ; ">" ; start ; 1 ) ] ; Middle ( From ; start ; end - start ) )
DPS Posted September 6, 2007 Author Posted September 6, 2007 OK, now I have reached my next challenge. The "To" field can sometimes have multiple addresses and they formatted like this: , ,... Is there a way of separating these and putting them as several repetitions in a single field?
sbg2 Posted September 6, 2007 Posted September 6, 2007 use a Let function and the substitute function twice. once to replace "<" with nothing (ie. "") and the second to replace ">, " with a return (pillcrow).
DPS Posted September 6, 2007 Author Posted September 6, 2007 I have another dilemma: I have two tables. One with my "contacts" and one with all the emails I import. I then create a realationship with the email address so that when I am on the contact card it displays all the sent and received emails for that contact. That part is easy. What I now want to do is find all the "orphan" emails in the database. This is all the emails that where imported and do not have a proper made up contact card for them. I want to find them in order to create the contacts or delete the emails if they are irrelevant.
sbg2 Posted September 10, 2007 Posted September 10, 2007 Since you already have a relationship by email address... go to your email table layout, put the field CONTACTS::email on the layout and do a find by putting the = (equals) sign in that field.
Recommended Posts
This topic is 6285 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now