Deleting Files on exit

apples76

Registered User.
Local time
Today, 17:29
Joined
Apr 25, 2006
Messages
15
I currently store temporay word files on each users C drive (c:\access info\forms\*.doc)

and i want to delte these files on exit from the database.

could anybody please advise on how to do this.

Thanks
 
Would this help

:confused:

'save
strFile = "file name"
strOutFile = "c:\access info\forms\" + strFile + ".doc"

'delete if file already exits

If Dir(strOutFile) > "" Then
VBA.Kill (strOutFile)
End If

docmd.exit
 

Users who are viewing this thread

Back
Top Bottom