I am trying to output a report to Excel with the following code:
Private Sub cmdExcelExec_Click()
On Error GoTo Err_Handler
Dim strReport as String
strReport = rpt_TransRegister
Docmd.OutputTo acOutputReport, strReport, acFormatXLS, "expenditure_report.xls", True
Exit_cmdExcelExec_Click:
Exit Sub
Err_Handler:
Msgbox Err.Number & " - " & Err.Description & vbCr & "Procedure: " & Err.Sourse, vbCritical + vbOKOnly, "Error Encountered"
Resume Exit_cmdExcelExec_Click
End Sub
I am receiving the following error:
"2196 - Budget Application can't retrieve the value of this property. Procedure: MSAccess."
I searched around the forum and didn't come up with anything useful on this error. I also checked the MS Knowledge Base and came up with nothing.
Thanks in advance...
Private Sub cmdExcelExec_Click()
On Error GoTo Err_Handler
Dim strReport as String
strReport = rpt_TransRegister
Docmd.OutputTo acOutputReport, strReport, acFormatXLS, "expenditure_report.xls", True
Exit_cmdExcelExec_Click:
Exit Sub
Err_Handler:
Msgbox Err.Number & " - " & Err.Description & vbCr & "Procedure: " & Err.Sourse, vbCritical + vbOKOnly, "Error Encountered"
Resume Exit_cmdExcelExec_Click
End Sub
I am receiving the following error:
"2196 - Budget Application can't retrieve the value of this property. Procedure: MSAccess."
I searched around the forum and didn't come up with anything useful on this error. I also checked the MS Knowledge Base and came up with nothing.
Thanks in advance...
