X   Site Message
(Message will auto close in 2 seconds)

Welcome to UtterAccess! Please ( Login   or   Register )

Custom Search
   Reply to this topicStart new topic
> Drag Drop Of Files Not Working In Access 2016 On Windows 10, Access 2016    
post Aug 14 2019, 02:42 PM

Posts: 3
Joined: 13-August 19


Apologies if this has been covered in another thread.

I'm looking for some help regarding dragging files onto a control on a form and getting the path of the file.

I've tried using the code provided at http://www.UtterAccess.com/forum/Drag-Drop...e-t1973842.html however the control_mousmove event is not firing when I release the lmb to drop the file. I have tested the same code in access 2010 on a windows 7 machine and the code works perfectly so I can only assume its due to differences in the access version or windows version.

I'm thinking the easiest fix might be to find a different event that fires when a file is dropped. Does anybody know if there is a fix for this?
Go to the top of the page
post Aug 14 2019, 03:07 PM

Posts: 1,615
Joined: 25-January 16
From: The Great Land

Possibly prevented by Windows 10 security - as suggested in another thread, review:


Attachments Manager is below the edit post window. To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
Go to the top of the page
post Aug 14 2019, 03:30 PM

Posts: 3
Joined: 13-August 19

So I should have mentioned i used ChangeWindowMessageFilterEx to make sure WM_DROPFILES, WM_COPYDATA and WM_COPYGLOBALDATA would be allowed to be sent to the form.

Is this what you meant or do you think the triggering of the event itself is being blocked by windows? Could you please elaborate more?
Go to the top of the page
post Aug 14 2019, 03:44 PM

Posts: 13
Joined: 29-September 16

The linked file works with Win10 (1703) and Acc2016, but not with Win10 (1809) and Acc 2007. I think subclassing and VBA is always problematic.

Alternatively you could use the Listview - ActivX - Control.
Go to the top of the page
post Aug 15 2019, 05:01 AM

Posts: 3
Joined: 13-August 19

The machine I've been using is Win10 (1709) with Access 2016 so it seems that it is probably an issue with the windows version rather than the access version if you say that Win10 (1703) and Access 2016 works. I'll take a look into the ActivX control you mentioned.
Go to the top of the page

Custom Search

RSSSearch   Top   Lo-Fi    7th August 2020 - 07:18 PM