Hello everyone!
I am working with Ms Access 2007-2013 file format.
I have a Report should be open, but every time I open the Report using the command button in a Form I've got Run time error '13' Type mismatch.
Here's the code of a Report that I am trying to open
Please help me for this. Any response is much appreciated . Thanks!
I am working with Ms Access 2007-2013 file format.
I have a Report should be open, but every time I open the Report using the command button in a Form I've got Run time error '13' Type mismatch.
Here's the code of a Report that I am trying to open
Code:
Private Sub btnMonthlyReport_Click()
Dim task, strCriteria As String
DoCmd.OpenReport "Simulation-AveragePerMonth", acViewPreview, task
End Sub
Please help me for this. Any response is much appreciated . Thanks!