文件拖放 [英] File Drag and Drop

查看:51
本文介绍了文件拖放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我正在构建一个新的MS Access 2010数据库程序,其中包括将多个文件存储为附件数据类型。  由于大多数这些文件都是通过电子邮件发送的,我希望用户能够简单地从电子邮件中拖动文件并将
放到Access表单上以存储文件。  有没有办法将这种类型的支持编码到表单/控件中?

I'm building a new MS Access 2010 Database program which will include storing multiple files as attachment data types.  Since most of these files arrive in e-mails I would like the users to be able to simply drag the files from the e-mails and drop them onto an Access form in order to store the files.  Is there a way to code this type of support into the form/control?

谢谢,

Dan

推荐答案

您可能希望了解一下:

You may like to look over:

 

https://bytes.com / topic / access / answers / 947863-how-create-drag-drop-field-files

http://www.utteraccess.com/forum/Drag-Drop-Files-feedme-t1973842.html

 

作为旁注,您应该认真考虑使用附件字段而不是简单地将文件保存到文件夹并将路径/文件名保存为纯文本。 附件导致数据库快速增长,并且可能导致数据库速度超过
的2GB限制。 我刚刚在2天前为一个数据库损坏的客户端恢复了这样的数据库,因为它们已经超过了2GB的限制! 显然,这一切都取决于你要添加的文件数量和加法频率
,但绝对值得认真考虑。

As a side note, you should think long and hard about using attachment fields rather than simply saving the files to a folder and save the path/filename as plain text.  Attachments lead to rapid database growth and can lead to databases exceeding the 2GB limit quite rapidly.  I just finished recovering such a database 2 days ago for a client who's database corrupted because they blew past the 2GB limit!  Obviously, this all depends on the quantity of files you will be adding and the frequency of addition, but definitely something to consider very seriously.


这篇关于文件拖放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆