My Assistant
![]() ![]() |
|
|
Feb 27 2006, 11:47 AM
Post
#1
|
|
|
UtterAccess Addict Posts: 242 From: NJ |
Hi everyone here is my problem. I need to work with the current database that we are using now but need some help.
The database is made up with Member companies and employees of those companies. Members table MemberID - PK Company Name First Last Address city [censored] zip ph fax etc Emplyees table Employee ID - PK MemberID - FK First Last Phone In the beginning we really didn't think that we would need too much info on the employees but things have changed. What I want to be able to do is create a query that would give us all the main contact mailing info as well as those employees that would like to receive the mailing. So when I run labels I run it off one query. Example Company ABC has John Doe as main contact but we would have Jane Doe, Mike Doe, and Dave Doe as employees in the employees form. John Doe, the main contact, informs us that Jane Doe needs to be included in all mailings to the company. This is where I'm having trouble. I can add her to the mailing but I have to create two queries and run labels twice. How can I include her (employee) and the main contact without creating multiple queries and without making major changes to the database? |
|
|
|
Feb 27 2006, 01:51 PM
Post
#2
|
|
|
UtterAccess Veteran Posts: 338 From: NY |
Can you add a yes/no field in the employees table and label it mailing or what everfits. If an employee wants to be included in the mail list check the box yes. then in your query add the new field and set the criteria to "Yes" This will only return records for the employees that want to receive the mailings.
|
|
|
|
Feb 27 2006, 08:30 PM
Post
#3
|
|
|
UtterAccess Addict Posts: 242 From: NJ |
I would still have to create two queries. I want one query with both employee and main contact information.
|
|
|
|
Feb 28 2006, 07:07 AM
Post
#4
|
|
|
UtterAccess Member Posts: 45 From: Kentucky |
Add the yes/no field to both tables. Add the employee table to you query with the yes/no field criteria to Yes and joined on the Member ID. It should pull in data for each comapny and each employee for that comany. If your still having problems, attach your query and let us take a look at it.
Jerry |
|
|
|
Feb 28 2006, 09:03 AM
Post
#5
|
|
|
UtterAccess Addict Posts: 242 From: NJ |
Thanks Jerry, I will give it a go today. I will let you know how I made out.
|
|
|
|
![]() ![]() |
|
Go to Top · Lo-Fi Version | Time is now: 19th May 2013 - 11:44 PM |