I have a contact database which contains three tables that I need to create a query from. The first table (Industry Companies) contains the primary mailing address for my companies. The second table (Industry Representatives) contains contact information and an address for the company representative only when their address is different than the primary mailing address. The third table (Request and Donor History) is used to record each request I make from a company or representative from a company.
I want to be able to run a query for a particular request date to send a mailing to the representatives and use their contact information and mailing address when it is different than the primary company mailing address or if the reps address is the primary company mailing address the query will return that information. In addition, I also want the query to include the primary company address when the representative id is null.
The table structures in my database are:
The table structures are -
Industry Companies -
Company Number
Company
Address 1
Address 2
City
State
Zip
Telephone
Fax
Tollfree
Website
Notes
Industry Representatives -
Rep ID
Company Number
Company
Last Name
First Name
Fullname
Title
Rep Tel
Rep Fax
Rep E-mail
Salutation
Rep Address
Rep Address 2
Rep City
Rep State
Rep Zip
Request and Donor History -
Program ID
Program
Company Number
Company
Industry Rep ID
Request Type
Request Date
Year
Request Amount
Status Type
Delivery Method
Grant Amount
Notes
Can any one help me with this query?
I want to be able to run a query for a particular request date to send a mailing to the representatives and use their contact information and mailing address when it is different than the primary company mailing address or if the reps address is the primary company mailing address the query will return that information. In addition, I also want the query to include the primary company address when the representative id is null.
The table structures in my database are:
The table structures are -
Industry Companies -
Company Number
Company
Address 1
Address 2
City
State
Zip
Telephone
Fax
Tollfree
Website
Notes
Industry Representatives -
Rep ID
Company Number
Company
Last Name
First Name
Fullname
Title
Rep Tel
Rep Fax
Rep E-mail
Salutation
Rep Address
Rep Address 2
Rep City
Rep State
Rep Zip
Request and Donor History -
Program ID
Program
Company Number
Company
Industry Rep ID
Request Type
Request Date
Year
Request Amount
Status Type
Delivery Method
Grant Amount
Notes
Can any one help me with this query?