Joining 3 tables.... (1 Viewer)

TajikBoy

Member
Local time
Today, 15:49
Joined
Mar 4, 2011
Messages
82
Good morning all,

Novice user here, trying to join 3 tables, namely tblContracts, tblProjects and tblInvoices....

Idea is to have a query to run a report - see Financial Report by Area, where it shows projects, associated contracts and associated invoices received , managed to join projects and contracts - see test query and where I got confused ;)

Basically for each line in the report, it should show the total invoiced amount, if there any invoice attached?

On a separate question, you'll notice there are 3 different types of contracts in the tblContract, is there any way to total them up in a way, so in the report I can chow them as separate totals (columns) on the top instead of listing them down?

Would appreciate your help........ and thanks in advance,

Erol
 

Dreamweaver

Well-known member
Local time
Today, 23:49
Joined
Nov 28, 2005
Messages
2,466
Hi Erol welcome aboard!
 

TajikBoy

Member
Local time
Today, 15:49
Joined
Mar 4, 2011
Messages
82
Opps
 

Attachments

  • Contracts - Copy.zip
    526.7 KB · Views: 115

jdraw

Super Moderator
Staff member
Local time
Today, 18:49
Joined
Jan 23, 2006
Messages
15,379
Some general comments on your tables.
-use names without embedded spaces for fields
-use names with no special characters ( %) use alpha/numeric and underscore(_) only
-be cautious of attachment fields ( known to increase bloat in some circumstances)
I have not reviewed any logic/processing etc.

There are several data models at Barry Williams' site.
Here's one Customers Invoices that may be helpful.
Good luck.
 
Last edited:

Users who are viewing this thread

Top Bottom