I am supposed create a new standard module named basAntiquesGeneralProcedures and add two procedures to it. The first procedure should print rptEmployeeSalaryDetail, and the second procedure should print rptEmployeeSalarySummary. so i come up with this and I keep getting a compile error. can anyone help me
Public Sub PrintReport()
DoCmd.OpenReport "rptEmployeeSalaryDetail", acViewNormal, , , acWindowNormal, ""
There's nothing wrong with what you have posted.
You need to give more details about the error. What is the error? When do you get it? Does it give you a "Debug" option? If so, what line is highlighted when you click it?
when i run it it gives me a run time error 2501 the Open repot action was canceled.
when I debug it just goes to the line
DoCmd.OpenReport "rptEmployee Salary Summary Report", acViewNormal, , , acWindowNormal, ""