开发者

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

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 开发者_JAVA百科you / can you copy a row which has an attachment field ?

Thanks


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜