Exporting To Excel, HELP!!!!

R

Russ

I am working on an application developed in Access 2000 as an ADP Project. Naturally it contains views and Stored Procedures. One of the queries called: "qryViewByMachineReworkedEmailData" is to be exported to an Excel97/2000/2002 format. However, the line of code that should do tthe exporting to excel is generating a strange error. The error reads as follows: Run Time Error 7874: can't find (database' name) the object "qryViewByMachineReworkedEmailData"

Private Sub cmdExportToExcel_Click()

DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel8, "qryViewByMachineReworkedEmailData", "MachineParts.XLS", True

End Sub

Since this is an Access 2000 project application (Now running under Access XP) are there any issues that can possibly be causing this error? What is the fix? Is the code syntax wrong, if it is, can someone assist in correcting it.

I am in a bind and pressed for time. I posted this earlier this morning. It seems that it did not post properly or not at all! 'Cause, I am not able to find the post from earlier. I am hoping that this time it will post correctly!

Thanks in advance for the assistance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top