J
jason
Using Access 2003.
I'm trying to create a simple mailing list DB with three tables:
MailerTbl (has info about the mailer media, date sent, etc): MailerID,
MailerName, MailerDescr, MailerDate, etc.
Mailers_Join_MailListTbl (join table between MailerTbl and MailListTbl):
MailerJoinID, NameID, MailerID
MailListTbl (holds info about contacts): NameID, Name, Address, City, State,
etc.
We plan to use this DB to keep our contact names organized and to be able to
know who we sent which mailer to and when.
I'd like to be able to query who hasn't been sent a mailer and mark that
individual.
So if I have a mailer with ID# 1, and a contact name of Jon Test (ID# 34) I
could run a query looking for contacts that haven't been sent mailer #1 :
SELECT MailList.Name, Mailers.MailerName, Mailers_Join_MailList.MailerID
FROM Mailers INNER JOIN (MailList INNER JOIN Mailers_Join_MailList ON
MailList.NameID = Mailers_Join_MailList.NameID) ON Mailers.MailerID =
Mailers_Join_MailList.MailerID
WHERE (((Mailers_Join_MailList.MailerID)<>1));
This gives me the names that have never been contacted with mailer #1. Then,
after I use the names, I'd like to be able to (in a query, or some sort of
automated way) mark these names with mailer #1 in the
Mailers_Join_mailListTbl.
Hope this isn't too confusing, but it's as clear as I can make it right now.
Any help would be greatly appreciated.
Jason
I'm trying to create a simple mailing list DB with three tables:
MailerTbl (has info about the mailer media, date sent, etc): MailerID,
MailerName, MailerDescr, MailerDate, etc.
Mailers_Join_MailListTbl (join table between MailerTbl and MailListTbl):
MailerJoinID, NameID, MailerID
MailListTbl (holds info about contacts): NameID, Name, Address, City, State,
etc.
We plan to use this DB to keep our contact names organized and to be able to
know who we sent which mailer to and when.
I'd like to be able to query who hasn't been sent a mailer and mark that
individual.
So if I have a mailer with ID# 1, and a contact name of Jon Test (ID# 34) I
could run a query looking for contacts that haven't been sent mailer #1 :
SELECT MailList.Name, Mailers.MailerName, Mailers_Join_MailList.MailerID
FROM Mailers INNER JOIN (MailList INNER JOIN Mailers_Join_MailList ON
MailList.NameID = Mailers_Join_MailList.NameID) ON Mailers.MailerID =
Mailers_Join_MailList.MailerID
WHERE (((Mailers_Join_MailList.MailerID)<>1));
This gives me the names that have never been contacted with mailer #1. Then,
after I use the names, I'd like to be able to (in a query, or some sort of
automated way) mark these names with mailer #1 in the
Mailers_Join_mailListTbl.
Hope this isn't too confusing, but it's as clear as I can make it right now.
Any help would be greatly appreciated.
Jason