I have a 2013 database with an "items" table that reflects all items and all assemblies right up to the finished product. I have several tables that will eventually list all the parts in each assembly and sub assembly (BOM tables). In each BOM table I have parts that apply to several applications that are listed in the table by application and parts per application. The values in the parts per application columns are summed in a "Totals" column. These parts are linked to the Items table by the Item ID.
Then I have a query that references all the data in the BOM tables and sums the components used in all the sub-assemblies. The problem is that the different components are not used at all in some of the assemblies and only used in one or two places in others. The items that happen to be used in all the assemblies in question return a total but the items that are not used in all the assemblies return nothing. I need a way to do this so that I can set inventory levels that are appropriate to consumption. How can I get this to work? In the table all I had to do was make sure the cells had a zero in them when they were null. In the query I don't know of a way to do that. I used the expression builder to build the sum expressions in both cases.