trudye10
Programmer
- Sep 8, 2006
- 67
I am receiving error '3011' could not find object. Here is my code.
I've used this command before and never had a problem, what am I missing?
Thanx,
Trudye
Code:
<html>
<head>
<title>Page</title>
</head>
<body>
Function Export_Output()
On Error GoTo WhyMe
DoCmd.TransferSpreadsheet , acSpreadsheetTypeExcel9, "tblEnroll_Error_Report", "U:\marketing\ResultsControl\AON_Enroll_Error_Report-2_" & Format(Date, "yyyymmdd") & ".xls", True
Exit Function
WhyMe:
MsgBox ("Error Number: " & Err.Number & " | Error Description: " & Err.Description)
End Function
</body>
</html>
I've used this command before and never had a problem, what am I missing?
Thanx,
Trudye