Solved

Access Reports

Posted on 2011-09-02
4
291 Views
Last Modified: 2012-05-12
Hi
I want to bring data from 3 seperate tables into a single report in Access 2010.
Table 1 contains customer data, name address etc, Table 2 contains the financial aspects of the job, labour charges etc, and table 3 is a list of parts used on the job.
I have used a select query to get the information form each table onto the report, the tables are linked by the job number.
The problem I have is that if a job has been done and no parts were used, I don't get any information about that job on the report at all.
I guess I have not created the relationships properly or perhaps the grouping of the report is not correct, I tried to group by the job number but still get nothing if no parts were used.
0
Comment
Question by:Tintoman51
  • 2
4 Comments
 
LVL 6

Accepted Solution

by:
c1nmo earned 250 total points
ID: 36474484
Double-click the joins and change to select all records from customer data and only those that match from the other tables.
0
 
LVL 12

Assisted Solution

by:telyni19
telyni19 earned 250 total points
ID: 36474492
Can you give the SQL of the query you are using, or show the query design?

From what you've said so far, I suspect you are using INNER (two-way) joins, which will only return records if the tables on both sides of the join contain information. To get jobs that have no parts, you need to use a LEFT or RIGHT (one-way) join so that all records are returned from the jobs table regardless of whether any parts are returned from the parts table.
0
 

Author Comment

by:Tintoman51
ID: 36474616
I tried the suggestion by c1nmo but it didn't make any difference, the SQL code attached does show an inner join but I don't know how to change this
SELECT Customers.[Job Number], Customers.[Customer Name], Customers.Address, Customers.[Post Code], Customers.[Vehicle Make], Customers.[Vehicle Model], Customers.[Registration Number], Customers.Colour, Customers.[Job Description], PartsList.Quantity, PartsList.Description, PartsList.[Selling cost], Finance.[Labour charge], Finance.[Paint Materials], Finance.[Sale Type], Finance.[Invoice Total]
FROM (Customers INNER JOIN PartsList ON Customers.[Job Number] = PartsList.[Job Number]) INNER JOIN Finance ON Customers.[Job Number] = Finance.[Finance Job Number];

Open in new window

0
 

Author Closing Comment

by:Tintoman51
ID: 36474643
Ok thanks to you both, this now works as you suggested.
Thanks again
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now