sharkchaser
Technical User
When I click the button on the form NOTHING HAPPENS at all!
This same code works in many other form buttons I have.
I'm totally lost as to why.
Thanks . . . Rick
This same code works in many other form buttons I have.
I'm totally lost as to why.
Thanks . . . Rick
Code:
Private Sub Command100_Click()
'LA QUINTA
On Error Resume Next
Kill "D:\flw\Access\YTD\qryLaQuintaProg.xls"
On Error GoTo 0
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel2003, "qryLaQuinta.xls", "D:\flw\Access\YTD", True
MsgBox "Finished Exporting La Quinta YTD to D:\FLW\Access\YTD"
End Sub