Ken, thanks for replying. What I am actually trying to do is take an Excel
sheet with multiple customers, each with their own email address. I am trying
to take each of the email addresses and combine them into one record so they
will "run together." At that point I could make that a Hyperlink and with one
click email all customers at one time. I thought maybe I could use the "&"
symbol to combine the addresses as you sould somthing like Soft "&" ware =
software. Hope that helps explain more what I am trying to accomplish.
Thanks
:
What is it you are trying to achieve here? Are you trying to combine all the
email addresses per customer into a single row in a table e.g. have all
contacts per customer together in one row? Having multiple values in one
column in one row of a table means the table would not be normalized as First
Normal Form requires values to be atomic, i.e. each column position in each
row of a table can contain only one value.
Where you have multiple values for one instance of a particular entity type
you should put these in separate rows in a related table. So you might have
a table Customers with a primary key EmailAddress and columns for the
attributes of the customers entity type such as the customer name, address
etc. You can then have a table EmailAddresses say with columns EmailAddress
and EmailAddress. In this case EmailAddress is a foreign key referencing the
primary key of Customers. For data input you might use a Customers form with
an EmailAddresses subform within it, linking them on the EmailAddress columns.
For a report you could use a report/subreport in the same way, but you'd be
more likely to join the tables in a query and base the report on the query,
grouping the report by customer.
If at present you have a table with multiple rows per customer its
relatively simple to 'decompose' it into related tables like so: Firstly
create the empty tables, using an autonumber column as the EmailAddress primary
key column in Customers. Then append one row per customer from the original
table by means of the SELECT DISTINCT option in the append query. Then join
the original table to the new Customers table on one or more columns which
uniquely identify each customer in the original table, e.g. the customer name
column(s), plus the address column(s) if more then one customer has the same
name, and append the EmailAddress from Customers and the EmailAddress columns
from the original table into the new EmailAddresses table.
The above might not accurately reflect your scenario, but hopefully
illustrates the principles involved.
Ken Sheridan
Stafford, England
:
I have a table that is imported from Excel that I use to keep track of
customers and their email addresses. I then made a query from that table in
an attempt to combine all the email addresses together into one record. The
query is called Query1 and the field is EmailAddress. Each email address in
the table has a semicolon behind it. I am trying to get the effect of
"(e-mail address removed);
[email protected];
[email protected]" Instead I get the following
(e-mail address removed);
[email protected];
(e-mail address removed);
[email protected];
(e-mail address removed);
[email protected];
My SQL is the following:
SELECT [CustomerInputTable.EmailAddress] & [CustomerInputTable.EmailAddress]
AS Expr1
FROM CustomerInputTable;