I am trying to combine data from multiple tables into one master table.
Each table has a Field called [MbrID], [Amt_Cost_Tbl1], [Amt_Paid_Tbl1], [Amt_Cost_Tbl2], [Amt_Paid_Tbl2], etc.. The Tbl1, Tbl2, etc are specific to the table names and I would like to keep them that way. I have 4 tables, so I should end with 9 columns. One MbrID column and [Amt_Cost_Tbl1], [Amt_Paid_Tbl1], [Amt_Cost_Tbl2], [Amt_Paid_X2]...
I can't do a Union Query because they don't have the same columns and I want to keep the values separate. If a MbrID is in one table but not the others, they should get a 0 for the Amount fields in the table they are not in (or a Null is fine).
I was trying to do this with multiple joins and left joins but that wasn't getting the outputs I was expecting. Join had too few since not every member was in every table and the left join had way too many.
Each table has a Field called [MbrID], [Amt_Cost_Tbl1], [Amt_Paid_Tbl1], [Amt_Cost_Tbl2], [Amt_Paid_Tbl2], etc.. The Tbl1, Tbl2, etc are specific to the table names and I would like to keep them that way. I have 4 tables, so I should end with 9 columns. One MbrID column and [Amt_Cost_Tbl1], [Amt_Paid_Tbl1], [Amt_Cost_Tbl2], [Amt_Paid_X2]...
I can't do a Union Query because they don't have the same columns and I want to keep the values separate. If a MbrID is in one table but not the others, they should get a 0 for the Amount fields in the table they are not in (or a Null is fine).
I was trying to do this with multiple joins and left joins but that wasn't getting the outputs I was expecting. Join had too few since not every member was in every table and the left join had way too many.