Solved

delete a file Programatically in Access 2000

Posted on 2004-09-28
1
221 Views
Last Modified: 2006-11-17
I have a routine that proceses some text Files
I get the file using

Open strInputFileName For Input As #1        ' Open Input file.
....
i Do the processing here

....
At the end I do
Close #1    ' Close file.

I want to delete the file that I was using  Full file path and name stored in a variable called.
strInputFileName

I want to erase the file without asking for user confirmation
   
0
Comment
Question by:TOPIO
1 Comment
 
LVL 41

Accepted Solution

by:
shanesuebsahakarn earned 300 total points
ID: 12174354
Kill.

Kill strFileName

to delete the file whose name/path is in strFileName.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now