Hi Potemkine, I couldnt figure out how to use position() but using your example, I figured it out by adding 2 fields, one to display a row count, and the other to capture the max(rowcount). Then using jscript I found on one of the sites listed above, I managed to display the grand total on the last page only. This issue is resolved...but now I have another issue. I'm about to give it up with coding infopath, with my very limited, almost none, scripting experience, it's very frustrating. But thanks to this forum and members, I'm learning a lot too.
Thank you so much.