Hi Everyone,
I have three tables tblCredit, tblInvoice and tblBudget. Each table has a customer, item and quantity field. I need to develop a query that shows the tblCredit.quantity, tblInvoice.quantity and tblBudget.quantity for each related customer and item record. My problem is that a customer can have a tblBudget.quantity for an item with no quantity in the other tables or a tblcredit.quantity with no tblinvoice.quantity etc. So if I run a normal query with the tables linked I only get a record if all three have a quantity value which is rarely the case.
If I had two tables I would just change the join type to show all the records for one table and then run a separate unmatched query followed by a union query. But with three tables the combinations seem complex and I was wondering if there is a better way to do it without creating dozens of queries. There is a seperate tblCustomers and tblItems if that would help in the solution. I tried a few combination of using inner joins but couldn't get it right.
Thanks in advance to anyone who can help me.
GPM
I have three tables tblCredit, tblInvoice and tblBudget. Each table has a customer, item and quantity field. I need to develop a query that shows the tblCredit.quantity, tblInvoice.quantity and tblBudget.quantity for each related customer and item record. My problem is that a customer can have a tblBudget.quantity for an item with no quantity in the other tables or a tblcredit.quantity with no tblinvoice.quantity etc. So if I run a normal query with the tables linked I only get a record if all three have a quantity value which is rarely the case.
If I had two tables I would just change the join type to show all the records for one table and then run a separate unmatched query followed by a union query. But with three tables the combinations seem complex and I was wondering if there is a better way to do it without creating dozens of queries. There is a seperate tblCustomers and tblItems if that would help in the solution. I tried a few combination of using inner joins but couldn't get it right.
Thanks in advance to anyone who can help me.
GPM