ahoffman50
Instructor
I have a button on my form that prints a report and one that previews the report. The preview report button works perfectly, but the print button gives a 2451 runtime error. The code for each button is exactly the same with the exception of the DoCmd.OpenReport stDocName, acPreview and DoCmd.OpenReport stDocName, acNormal.
See the attached file for code.
See the attached file for code.