I do not have a direct query.I am buliding a query based on the filtering criteria 's from the form that i provided. so when i pass that query or that string it gives me query not found
i used this
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, StrSq, "filename.xls
this also...