Now I need to go a step further.
For each expense item entry, I have added a dept # column.
In the GL total section I added at the bottom of the form, I still need to sum the amounts of the expenses grouped by the category. But in addition to that, I need to also group by dept # within the category. So, in the GL section I have added, the "entertainment" category is summed, but I also need a sum of each entertainment entry for each dept # that was entered. I can't add a test for individual dept #'s because there are too many of them.
Any ideas? I would prefer to do it without coding. I have done a lot of coding in Access VBA, but I haven't figured out the coding behind the infopath forms yet. If I have to add code to loop through all the expenses and sum all amounts for different depts that way, I don't know how to return the summed amount to the GL section of the form. (I actually don't know how to code any of it, but am hoping I can find examples on how to loop through the expense items and create memory varaibles for the values I need).