Results 1 to 1 of 1

Thread: Drag & Drop

  1. #1
    Join Date
    Apr 2004
    NC USA

    Exclamation Unanswered: Drag & Drop

    I need to be able to drag files from Explorer (not IE) and drop them on a control or form in Access then some code will make an entry in a table and copy the dropped file to another folder.

    I found some nifty code in the archives ( unfortunately I am banging my head on the wall with a bug I can't fix.

    - First bug Set CDrag = New ClsDragDrop must be added to the WindowProc sub.

    - When the execution reaches the line "txt.Text = txt.Text & Left$(sFilename, lReturn) & vbCrLf" in the class module I get an error message: Object Variable not Set then VB freezes.

    Thanks for your help,


    P.S. Complete project attached
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts