DwayneS
Instructor
- Mar 29, 2002
- 70
Simple coding error. I'm processing a long list of files sent to a directory as work is completed. I simply need to delete a file if it already exists. Here's the code and it doesn't run. The filename calculation is working. I need coding correction. Can someone who understands vb tell me what's wrong?
GetFile = DataPath & FileIn
NewFile = HistDataDir & DateString & FileIn
If FileExists(NewFile) Then
Kill NewFile
End If
Dwayne Streeter, CPA, CITP
GetFile = DataPath & FileIn
NewFile = HistDataDir & DateString & FileIn
If FileExists(NewFile) Then
Kill NewFile
End If
Dwayne Streeter, CPA, CITP