I have a big problem with access 2003 + vba

Y

yael

Hi,
I am using code found here http://www.mvps.org/access/api/api0032.htm
to allow users to drag and drop files into my Access 2003 application.
users to drag and drop files from a variety of sources into the application.
The only "Snag" to date is that it refuses to accept attachments dragged
directly from Outlook email messages.
I don't know how to get Data that drag-and-drop.
with this link I'm using to D&D:
If Msg = WM_DROPFILES Then
I whant to ask if MSG = attached file.. :)

In C# you have this code to find out if it's virtual file (email attached
file) or if it's explorer file:
http://www.codeproject.com/csharp/TestEmailDragDrop.asp

if (e.Data.GetDataPresent(DataFormats.FileDrop))
{ e.Effect = DragDropEffects.Copy;}
// or this tells us if it is an Outlook attachment drop
else if (e.Data.GetDataPresent("FileGroupDescriptor"))
{ e.Effect = DragDropEffects.Copy;}

In VB you can get to know what file is it with:
If Data.GetFormat(vbCFFiles) Then.........
from: http://reliableanswers.com/vb/samples.asp
OLEDragDrop.zip

Thank you soooooo!!!!
I need you help....................
Yael
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top