One thing I noticed was you closed the recordset and destroyed the recordset in the main code. If an error occurs it will skip over these lines to the error handler then exit out. Wouldn't these lines be better in the DoExit area just before Exit Function?
doExit: HandleDroppedFile = DocumentID If Not rs Is Nothing Then rs.Close Set frm = Nothing Set rs = Nothing Exit Function
If you are a Visitor, go ahead and post your reply as a
new comment, and we'll move it here for you
once it's approved. Be sure to use the same name and email address.
This thread is now CLOSED. If you wish to comment, start a NEW discussion in
Access Developer 51.