Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

Delete File and Linking files Access 2003

$
0
0
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

This works well the first time I use it only after I manually delete all of the files first in C:\flw\Access\
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 won’t 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")
I’m 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 can’t figure it out.

Thanks . . . Rick

Viewing all articles
Browse latest Browse all 13329

Trending Articles