Missing Totals in Summary Record

While running some simple code to Total a few columns, unexpectedly some of the summary records did not have a total, just a blank cell or space. I doubled the code in my procedure, or duplicated the code so that fields would be totaled twice, and the totals appeared as expected. Has anyone else had a problem with fleeting totals?