ACCESS 2010 / SQL: How do you copy a row which has an attachment field?

只愿长相守 提交于 2019-12-11 23:51:38

问题


I want to run a SQL query to copy a row from my table to either the same table or another table.

Whichever method I use, I end up with a message telling me something similar to "You can't run an INSERT INTO query if it contains a multi-value field" (translated from french) I tried using SELECT * INTO, but the result is the same.

My table is about reports, which can have a revision (hence the row copy), and they can have an attachment like for ex. a pdf file.

so, how do you / can you copy a row which has an attachment field ?

Thanks


回答1:


I do not have Access 2010 to hand at the moment, but you will find that attachments are stored in hidden system tables as single records and that you need to use that table to copy multiple records, unless you wish to use VBA.

More info: http://office.microsoft.com/en-us/access-help/guide-to-multivalued-fields-HA001233722.aspx?pid=CH100645681033
http://msdn.microsoft.com/en-us/library/bb258184.aspx



来源:https://stackoverflow.com/questions/4591813/access-2010-sql-how-do-you-copy-a-row-which-has-an-attachment-field

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!