Is this code exact?
Docmd.OutputTo acOutputQuery, "NameOfQuery", acFormatXLS, "C:\Path To Document", True
If this is the EXACT code you're using, that is the problem.
"NameOfQuery" means the name of the query like
"GetData" or "Qry_Fields". whatever query you're using.
"C:\Path to...