I haven't used MS Access in decades, but I ran the code thru chat GPT, which I have found excellent for debugging Excel formulas and VBA. Here is what AI said:
This VBA code is intended to be used in Microsoft Access, and it is triggered when the cmdPrnRep_Click event is fired, typically by a...