Query/Join Problem

  • Thread starter Thread starter CNW
  • Start date Start date
C

CNW

Guest
I've set up a database that has three key tables and I can't figure out how to set up a query to get the correct combined information from the tables. I thought it was a problem with my relationships and I needed to create a junction table but that hasn't worked either. Can any one help?

The tables are:
FundCode
FundCode: PK
Other fields with text data about each fund code

Uses
UseID: PK
Other fields include:
FundCode
$AmountsofUses by year

Sources
SourceID: PK
FundCode
$AmountsofSources by year

I have a 1:M relationship set up between Uses & FundCode table and a 1:M relationship set up between Fundcode and sources.

I want to run a query that will allow me to total the $ amounts of all sources for a particular fundcode and total the $ amounts of all uses. I want a separate field that will calculate the bottom line for that fund code. I can't keep the query from repeating each source for every use or vice versa which results in a error in the totals since it calculates the same number twice.

Can anyone help me?-CNW
 

Users who are viewing this thread

Back
Top Bottom