Hi,
When I run the following code I get a Run-time error '3044':
Private Sub Command0_Click()
DoCmd.SetWarnings False
DoCmd.OpenQuery "qry_cost_01_update_month", acViewNormal, acEdit
DoCmd.OpenQuery "qry_cost_02_update_WL_categories", acViewNormal, acEdit
DoCmd.OpenQuery "qry_cost_03_update_wouldbe_W_category", acViewNormal, acEdit
DoCmd.OpenQuery "qry_cost_04_update_invoice_W_category", acViewNormal, acEdit
DoCmd.OpenQuery "qry_cost_05_wouldbe_cost", acViewNormal, acEdit
DoCmd.Close acQuery, "qry_cost_05_wouldbe_cost"
DoCmd.OpenQuery "qry_cost_06_invoice_cost", acViewNormal, acEdit
DoCmd.Close acQuery, "qry_cost_06_invoice_cost"
DoCmd.OpenQuery "qry_cost_07_update_savings_master", acViewNormal, acEdit
DoCmd.OpenQuery "qry_cost_08_breanne_report", acViewNormal, acEdit
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "qry_cost_08_breanne_report", "U:\Logistics Savings\Savings", True
DoCmd.SetWarnings True
End Sub
In the debugger, the bolded line is highlighted. "Logistics Savings" is a folder in my U Drive. If I make the path "U:\Logistics Savings" the spreadsheet exports directly to my U Drive with the name "Logistics Savings.xls". I need to export the spreadsheet to my U Drive, Logistics Savings folder, and name the spreadsheet "Savings.xls".