Re: Unable to delete folder
- From: Alan Carpenter <Not@xxxxxxxx>
- Date: Mon, 21 May 2007 20:38:31 -0500
Help - Kill - See Also.
RmDir Statement
Syntax
RmDir path
The required path argument is a string expression that identifies the
directory or folder to be removed. The path may include the drive. If no
drive is specified, RmDir removes the directory or folder on the current
drive.
Remarks
An error occurs if you try to use RmDir on a directory or folder containing
files. Use the Kill statement to delete all files before attempting to
remove a directory or folder.
This example uses the RmDir statement to remove an existing directory or
folder.
' Assume that MYDIR is an empty directory or folder.
RmDir "MYDIR" ' Remove MYDIR.
Cheers,
Alan
"biganthony via AccessMonster.com" <u31673@uwe> wrote in
727d4bfe8f481@uwe:">news:727d4bfe8f481@uwe:
Hi,.
I have the following code to select a folder and then delete it. I
keep getting a Path/File error on the line that deletes the actual
folder. The line before that line deletes the files in the folder but
I get the error message when the procedure attempts to delete the
folder selected in the BrowseforFolderbyPath function.
How can I get it to delete the folder that the user has selected in
the Browse for Folder dialog?
Thanks,
Anthony
- Follow-Ups:
- Re: Unable to delete folder
- From: biganthony via AccessMonster.com
- Re: Unable to delete folder
- References:
- Unable to delete folder
- From: biganthony via AccessMonster.com
- Unable to delete folder
- Prev by Date: Re: Unable to delete folder
- Next by Date: Re: Access 2007 Developer
- Previous by thread: Re: Unable to delete folder
- Next by thread: Re: Unable to delete folder
- Index(es):
Relevant Pages
|