473,387 Members | 1,578 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How to report on three tables in Microsoft Access

I have three tables. One contains ALL funds(Funds). Then I have a table that has the Representatives of the fund(FundReps)and the third table has the Recipients of the Funds(FundRecipients). I need an Access report to show all the Funds regardless of rather they have a Rep or a Receipients. So the report needs to show the Fund, the Rep and the Recipients but if the rep, recipient or both is missing, the fund still needs to populate. Right now it is either show the funds with all the reps or the funds with all the recipients.
Sep 13 '19 #1

✓ answered by twinnyfo

joithomas,

Welcome to Bytes!

This is a query issue. You will have to create a LEFT JOIN query with your tables, in which you display all the records from Table Funds and only the records from FundReps and FundRecipients that match. This is common in query building. If you provide your current query, we may be able to assist you in this.

7 1501
twinnyfo
3,653 Expert Mod 2GB
joithomas,

Welcome to Bytes!

This is a query issue. You will have to create a LEFT JOIN query with your tables, in which you display all the records from Table Funds and only the records from FundReps and FundRecipients that match. This is common in query building. If you provide your current query, we may be able to assist you in this.
Sep 13 '19 #2
NeoPa
32,556 Expert Mod 16PB
As Twinny says, it sounds very much like you have a query that uses INNER JOINs instead of LEFT JOINs or Right JOINs.

If you look at your Query in the design view then you'll see the various tables with lines linking them together on one or more Fields. If you switch to the SQL view you'll see more easily what Twinny's talking about. On the other hand, if you can double-click on one of the lines that joins two of your tables together you'll see options of the type of links available.
  1. #1 is equivalent to the SQL INNER JOIN.
  2. #2 is equivalent to the SQL LEFT JOIN.
  3. #3 is equivalent to the SQL RIGHT JOIN.
If you ensure all the links are #2 or #3, depending on which of the tables is on which side, then you should see all of your data - even those without matching entries.

Best of luck.
Sep 14 '19 #3
Thank you guys!! Changing the joins worked. I had the joins correct on the Relationship but had to change it on the query also!!

Now I'm dealing with dupes...ugh
Sep 14 '19 #4
NeoPa
32,556 Expert Mod 16PB
Hi Jo.

Glad to hear that helped.

Dupes are a different issue. Feel free to post a question about them, but in a separate thread. You can link to this one if you feel it may be helpful.

I'd start though, by considering exactly what you want in the data. The way you have it described now it actually makes sense that you would get duplicates in any situation where you have multiple [FundReps] records AND multiple [FundRecipients] records. Think about why expecting anything else doesn't really make any sense.

I'll leave that with you and look out for another thread when you're ready to post it.
Sep 14 '19 #5
twinnyfo
3,653 Expert Mod 2GB
Also, if I understnad your "bigger picture", you want to create a report on this data. Well, then, your Report should be based upon Table Funds, and then you should have two sub-reports on that report: one for FundReps and one for FundRecipients. These two sub-reports would have a Parent-Child relationship on the same fields you are joining now--but you eliminate the need for LEFT/RIGHT JOINs, and will not produce duplicates in the Funds Table records.

This is actually the "better" approach to what I "think" you are doing.

Hope this hepps!
Sep 16 '19 #6
Thanks Twinnyfo! That worked beautifully and it was a better approach. Thanks for your help!!
Sep 17 '19 #7
Thank you. It is very helpful answer.
Sep 23 '19 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Susan Bricker | last post by:
I would like to generate a report (I have the report working already) using MS/ACCESS 2000 and then have the ability to send the report as an email attachment to my colleagues. I have looked...
6
by: Larry R Harrison Jr | last post by:
I have Access XP, and the following code which is supposed to assign a JPEG to an image control: Me.Image9.Picture = "F:\Pictures\CP775_SonyDSCP50\FingerRockNight_Resize.jpg" I get this error...
0
by: elie chucrallah | last post by:
I am developping an application using vb6. this application connects to a microsoft access database using Microsoft DAO 3.51 in order to connect to access i have to convert it to access 97, before...
0
by: Michael SL | last post by:
I am trying to get the Table Column definitions from a Microsoft Access 2000 database (*.mdb). Using VB with System.Windows.Forms.Form I do the following Dim OpenDBDialog As New OpenFileDialo...
1
by: yasinahmad | last post by:
Hi every one I have three tables 1-students 2-books 3-pens I wont to make report by data report to show tables like this student name
6
by: John | last post by:
Hi I have three tables with a common id with which they can be linked. I need to merge them in a way that the resultant table has all records from three tables. Below is what sort of result I am...
1
by: Big X | last post by:
I have already achieved this in access and was trying with straight SQL earlier I would just like to know what I'm doing wrong in sql or what syntax I'm missing. I have three tables with identical...
8
by: gersam | last post by:
I have Microsoft Access 2003 and i have a report of Crystal Report 10, i want to configure the Crystal report viewer in Microsoft Access to run this report, but i don't know how to do it. The...
0
by: koskap | last post by:
Hello . I have three related tables (Team, driver, points). The problem that i have is that i can't update all three tables at the same time. The error says that a record is required in the table...
2
by: nebula53 | last post by:
I need to generate a report from three tables, these tables does not have common primary Key, how can I link them.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.