I had seen that, but... it didn't look too helpful Pretty sure a sequence is not what I'm after. I am using mysql, and I want to flag the records selected for the report as printed (by the time the report is done). Further to your links, which I thank you for. Can scriplets be used to update a database? Also, they seem to need to be set up in jasperStudio, but I'm not sure how to write any ccode for them?