Annoscia85
Registered User.
- Local time
- Today, 19:50
- Joined
- Aug 16, 2011
- Messages
- 32
Hi All,
This has been bugging me for a few day's.
I want to join 4 tables together, these are:
1 - Costing_Main
2 - Costing_Sub
3 - Machine_Charge_Out
4 - Material_Cost
I can join the first 3 tables together no problem, and they return the columns I need to view, but when i add the final table (Material_Cost) to the SQL code no data from any of my tables are returned, but as soon as i take the Material_Cost away, its works again.
This is my SQL code for my query in access.
SELECT Machine_Charge_Out.Machine_Type, Costing_Sub.Qty_Price_Break, Costing_Main.Enquiry_No, Costing_Main.Current_Date, Material_Cost.Weight_Per1000
FROM Material_Cost INNER JOIN (Costing_Main INNER JOIN (Costing_Sub INNER JOIN Machine_Charge_Out ON Costing_Sub.Machine_Type = Machine_Charge_Out.Machine_Type) ON Costing_Main.Enquiry_No = Costing_Sub.Enquiry_No) ON Material_Cost.Part_No_length = Machine_Charge_Out.Hourly_Rate;
Does anybody have any idea's?
Thanks in advance
This has been bugging me for a few day's.
I want to join 4 tables together, these are:
1 - Costing_Main
2 - Costing_Sub
3 - Machine_Charge_Out
4 - Material_Cost
I can join the first 3 tables together no problem, and they return the columns I need to view, but when i add the final table (Material_Cost) to the SQL code no data from any of my tables are returned, but as soon as i take the Material_Cost away, its works again.
This is my SQL code for my query in access.
SELECT Machine_Charge_Out.Machine_Type, Costing_Sub.Qty_Price_Break, Costing_Main.Enquiry_No, Costing_Main.Current_Date, Material_Cost.Weight_Per1000
FROM Material_Cost INNER JOIN (Costing_Main INNER JOIN (Costing_Sub INNER JOIN Machine_Charge_Out ON Costing_Sub.Machine_Type = Machine_Charge_Out.Machine_Type) ON Costing_Main.Enquiry_No = Costing_Sub.Enquiry_No) ON Material_Cost.Part_No_length = Machine_Charge_Out.Hourly_Rate;
Does anybody have any idea's?
Thanks in advance