S
Sid Price
Hello,
I am in need of some advice for a table create query. I have to work with a
database that is imported using XML from an online database. Unfortunately
the online database is a single (flat) table of membership data. I need to
generate a mailing list from that data. The problem is that each record may
contain one of two addresses for the mailing to a member. One is the
organization address they work at the other is an optional mailing address.
If the optional mailing address is present those fields must be used,
otherwise the fields containing the organization address should be used.
I can generate two tables that contain the mailing and organization data
individually using these two queries:
SELECT members.firstname, members.lastname, members.mail_address INTO
MailingList_1
FROM members
WHERE (((members.mail_address)<>""));
SELECT members.firstname, members.lastname, members.org_address INTO
MailingList_2
FROM members
WHERE (((members.mail_address)=""));
However I would really like to have a single query that makes a new table
that has the mailing data.
Thank you for any help,
Sid.
I am in need of some advice for a table create query. I have to work with a
database that is imported using XML from an online database. Unfortunately
the online database is a single (flat) table of membership data. I need to
generate a mailing list from that data. The problem is that each record may
contain one of two addresses for the mailing to a member. One is the
organization address they work at the other is an optional mailing address.
If the optional mailing address is present those fields must be used,
otherwise the fields containing the organization address should be used.
I can generate two tables that contain the mailing and organization data
individually using these two queries:
SELECT members.firstname, members.lastname, members.mail_address INTO
MailingList_1
FROM members
WHERE (((members.mail_address)<>""));
SELECT members.firstname, members.lastname, members.org_address INTO
MailingList_2
FROM members
WHERE (((members.mail_address)=""));
However I would really like to have a single query that makes a new table
that has the mailing data.
Thank you for any help,
Sid.