Advertisement

07.16.2008 at 12:25AM PDT, ID: 23568698
[x]
Attachment Details

Build a single report using multiple tables that have one field in common

Asked by csall in Access Reports, Microsoft Access Database, Access Architecture/Design

Tags: Microsoft, Access, 2003

I am trying to build a report that combines multiple tables and will give me the report below:

Report should be sorted by contractor doing the work, then by permit type, then by permit number

Company ABC (Contractor doing work)
   - Road Permits (open permits listed and sorted by permit #)
          - RD-0120,  road A1
          - RD-0121, road A2
  - Confined Space Permit (open permits listed and sorted by permit #)
           - CS-0120, location AB
           - CS-0121, location DF

Company AABB (Contractor doing work)
   - Road Permits (open permits listed and sorted by permit #)
          - RD-0115,  road B4
          - RD-0130, road C3
  - PMC Permit (open permits listed and sorted by permit #)
           - PMC-0105, location KS
           - PMC-0161, location LL

Company XYZ (contractor doing work)
   - Road Permits (open permits listed and sorted by permit #)
          - RD-0123,  road A4
          - RD-0125, road A3
  - PMC Permit (open permits listed and sorted by permit #)
           - PMC-0118, location DV
           - PMC-0119, location ED

The problem I have is this.  I have a table that lists the contractors.  Then I have multiple tables for each type of permit.  The permits types each have unique ID numbers that I use an auto counter to provide the next permit number.  If I try to create a query, cannot get it to work correctly.  See the attached file.

What I would like to see is the information broken out like above.  One contractor, and each line showing a different permit that is open.  There should not be info in the Road Permit Number field if there is information in the PMC Permit Number field.  (I also noted that all the permit number titles became "Permit Number Issued by PMC" not sure why that happened.)

Any help would be appreciated.



Start Free Trial
Attachments:
 
Example of results when I try to make a Query
Example of results when I try to make a Query
 
 
Example of what I would like to get from Query
 
[+][-]07.16.2008 at 01:39AM PDT, ID: 22014169

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.16.2008 at 01:40AM PDT, ID: 22014173

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.16.2008 at 11:16PM PDT, ID: 22022716

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.16.2008 at 11:28PM PDT, ID: 22022769

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Access Reports, Microsoft Access Database, Access Architecture/Design
Tags: Microsoft, Access, 2003
Sign Up Now!
Solution Provided By: zipa72
Participating Experts: 2
Solution Grade: B
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628