Welcome back! I had figured out the ramadan connection. It has been quiet around here.
Take a look at this. There is something about grouping in the data environment before running the command
If that post doesn't make sense, DaniWeb has several more that are similar. Just search the fault you are getting.
The method I used is to calculate the grand total in the front end before updating the database and then I will save the database with the total amount and Using labels in the data report i ll print the total.