Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

API Call problem, additional code crashes Access

Status
Not open for further replies.

RivetHed

Programmer
Feb 17, 2003
294
GB
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
 
Ignore this, for some reason making a copy of the database seems to stop it crashing.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top