Convering email info into table

A

Ana

Hi,
I have a long email list (about 9900) which I'd like to convert into a table
(now empty) having the following columns:

EMAIL_ID (autonumber)
EMAIL_NAME
EMAIL

the list is text formatted as:

"A.T.E.S.E." <[email protected]>,
"A.V.R. RACING" <[email protected]>, etc.

Howto strip the extra caracters and move the info into the table?
TIA
Ana

Access XP
 
J

John Vinson

Ana said:
Hi,
I have a long email list (about 9900) which I'd like to convert into a table
(now empty) having the following columns:

EMAIL_ID (autonumber)
EMAIL_NAME
EMAIL

the list is text formatted as:

"A.T.E.S.E." <[email protected]>,
"A.V.R. RACING" <[email protected]>, etc.

Howto strip the extra caracters and move the info into the table?

You can use the string handling functions Left(), Mid(), and InStr. Link to
your list (or import it); let's say this single field is named FullEMail. you
can run an Append query to your new table, appending:

Left([FullEmail], InStr([FullEmail], "<") - 1)

to EMailName, and

Mid([FullEmail], InStr([FullEmail], "<") + 1, InStr([FullEmail], ">") + 1)

to EMail.

John W. Vinson/MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top