I have a report and I want to export to Excel
But the program of Office 2007 is not allowed to do so
Shows problems
Code that has been written
DoCmd.OpenReport "rpt_search", acViewPreview,,, acHidden
DoCmd.OutputTo acOutputReport, "rpt_search", acFormatXLS, "C: \ data.XLS", True
DoCmd.Close acReport, "rpt_search"
Please, please, help me ..