Folders & Files - List / Open / Attributes / Copy / Delete / New

gastoman

Registered User.
Local time
Today, 02:20
Joined
Apr 19, 2004
Messages
14
customizing code

In relation to this thread...


I've tried to cusomize the code for my use. Unfortunatly this didn't work.
My goal was when I open the form I automaticly points to a specific folder.
I copied the code from cmdListDirfiles to the sub form open and changed Me.txtdir = "" to Me.txtdir = "u:\database\import"
As I open the form it works fine the content of the folder is proberly shown, but when I want to delete some files a runtime error is shown and
Set myfile = myFilesystem.getFile(filePath) is highlighted.
FYI I only want to Delete files from that specific folder.
Can you help to make this work for me.

gr.
Martijn
 
Last edited by a moderator:
It would be more helpful if you mentioned which Runtime error occurred - I'd guess, however, that there's a file object you do not have a reference to. Open a module and go to Tools -> References. If one is missing, fix it.
 
runtime error

Runtime error 53
File not found

After checking the file is there.
 
gastoman,

Are you able to make the open and copy work?

If you use just my sample and not one you tried to customize to your needs, does the delete button in my sample work?
 
Cosmos75 said:
gastoman,

Are you able to make the open and copy work?

If you use just my sample and not one you tried to customize to your needs, does the delete button in my sample work?
Your example works just fine.
But when I customize everyting works exept the delete function.
 

Users who are viewing this thread

Back
Top Bottom