My code for pulling info into a report isn't working in EPDM

Hello! I have written a code that should pull information and put it into a report for us. I am using the report tool that is built within the EPDM program. The problem is, I'm not much of a coding genius so I'm not sure where the problem exists. We would like the report to pull the information from six (6) different variables from a set date. Is that possible? If so, can someone take a look and tell me what I'm doing wrong? Frustration is setting in! Thank you!

SolidworksSolidworks Pdm enterprise Pdm