Code:
Private Sub Command5_Click()
DoCmd.OpenReport "rptCBCapoBeach", acViewPreview, ""
On Error Resume Next
Kill "C:\flw\Access\qryCBCapoBeachProg.xls"
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel2003, "qryCBCapoBeachProg", "C:\flw\Access\", True
MsgBox "Exported CAPO BEACH Program"
End Sub
Then I open Freelance Graphics and open the charts that are linked to the exported Excel 5-7 format (whatever that is) file named qryCBCapoBeachProg.xls but the charts wont open.
The word Link is not highlighted and the program will continue in this mode without shutting down for hours. I must use the task bar to close the program.
This is not working at all! (Kill "C:\flw\Access\qryCBCapoBeachProg.xls")
Im using Access 2003 and Lotus Freelance Graphics under Windows 7 in both in x86 mode.
If I can successfully delete the file as shown in the above code I would not have any problems.
I cant figure it out.
Thanks . . . Rick