I have this existing functional SQL and need to add the Customer Table to this SQL:
The current SO_Header table has a field called "SO_Header.Customer" and the Customer table has a field called "Customer.Customer" these to need to be linked in the below SQL.
sql = sql & "FROM SO_Header INNER JOIN (SO_Detail LEFT JOIN Material ON SO_Detail.Material = Material.Material) " _
& "ON SO_Header.Sales_Order = SO_Detail.Sales_Order " _
& "WHERE SO_Header.Status IN('Hold', 'Open') "
The current SO_Header table has a field called "SO_Header.Customer" and the Customer table has a field called "Customer.Customer" these to need to be linked in the below SQL.
sql = sql & "FROM SO_Header INNER JOIN (SO_Detail LEFT JOIN Material ON SO_Detail.Material = Material.Material) " _
& "ON SO_Header.Sales_Order = SO_Detail.Sales_Order " _
& "WHERE SO_Header.Status IN('Hold', 'Open') "