UtterAccess.com
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    
 
   
ShadowBane
post Aug 14 2019, 02:42 PM
Post#1



Posts: 3
Joined: 13-August 19



Hi,

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
 
June7
post Aug 14 2019, 03:07 PM
Post#2



Posts: 728
Joined: 25-January 16



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

https://docs.microsoft.com/en-us/windows/se...t-control-works

--------------------
Attachments Manager is below the edit post window. To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
DEBUG! DEBUG! DEBUG! http://www.cpearson.com/Excel/DebuggingVBA.aspx
Go to the top of the page
 
ShadowBane
post Aug 14 2019, 03:30 PM
Post#3



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
 
daolix
post Aug 14 2019, 03:44 PM
Post#4



Posts: 12
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
 
ShadowBane
post Aug 15 2019, 05:01 AM
Post#5



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    20th August 2019 - 02:43 AM