A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Seperating Email Addresses using a Query



 
 
Thread Tools Display Modes
  #1  
Old February 16th, 2007, 05:32 PM posted to microsoft.public.access.queries
dwalsh77
external usenet poster
 
Posts: 7
Default Seperating Email Addresses using a Query

I have 1 table called Customers which has many fields, inlcuding an
EmailAddress field. I query the table so that it returns all the email
addresses and creates a New Table (I have already done this, no prob). Lets
say that when the query is executed, it returns 500 email addresses and
creates a table with 500 records.
But now, I have noticed that some of the entries in the EmailAddress field
in the original Customer table have multiple email address seperated with a
semi-colon, SO, in actual fact, there are more than 500 email address
(somewhere around 650).
When I do the query, how would I be able to extract all the email addresses
(650) individually and then make the new table with 650 records instead of
500?
  #2  
Old February 16th, 2007, 05:55 PM posted to microsoft.public.access.queries
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default Seperating Email Addresses using a Query

In this I used a field named E-mail.
Use criteria Like "*;*"
Alternately append to the same table and update the table using the below --
- append Expr1: Left([E-mail],InStr([E-mail],";")-1)
- update Expr2: Trim(Right([E-mail],Len([E-mail])-InStr([E-mail],";")))

Do this until there are not more records with semicolon.

"dwalsh77" wrote:

I have 1 table called Customers which has many fields, inlcuding an
EmailAddress field. I query the table so that it returns all the email
addresses and creates a New Table (I have already done this, no prob). Lets
say that when the query is executed, it returns 500 email addresses and
creates a table with 500 records.
But now, I have noticed that some of the entries in the EmailAddress field
in the original Customer table have multiple email address seperated with a
semi-colon, SO, in actual fact, there are more than 500 email address
(somewhere around 650).
When I do the query, how would I be able to extract all the email addresses
(650) individually and then make the new table with 650 records instead of
500?

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:32 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.