Hi folks,
I've used slightly amended code taken from here: to create a form which logs the path of any item dragged and dropped into a listbox on the form. It all works fine at that stage.
I'm trying to insert a command button on to the form which will copy all the files listed in the listbox into a seperate directory and enter the filename into a table in the database.
Having any code at all in the on_click event of the command button, even just the start and end sub lines, causes the form to lock on open and entering break mode causes the entire thing to crash.
Any ideas what the problem might be?
Thanks
I've used slightly amended code taken from here: to create a form which logs the path of any item dragged and dropped into a listbox on the form. It all works fine at that stage.
I'm trying to insert a command button on to the form which will copy all the files listed in the listbox into a seperate directory and enter the filename into a table in the database.
Having any code at all in the on_click event of the command button, even just the start and end sub lines, causes the form to lock on open and entering break mode causes the entire thing to crash.
Any ideas what the problem might be?
Thanks