I have a table where there is a “Photo” text field with the name of the file. I also have the actual files in a separate folder. I want to attach those files to the database, and not keep them in a separate folder. So I’ve created a separate “Picture” attachment field. But I don’t know how I can attach those files to this field automatically. Can you give me some directions?
Share
Attachments are quite different from OLE objects. The first should be compacted and are managed without OLE servers installed on machine. For example, when you add a OLE object to a MS-Access field, this object is transformed in a kind of bitmap, which ought to be very large. In attachment fields, several file formats are automatically compacted on database. Also, you are able to import more than just only one file. In this case, Access does, behind the scenes, relational database model for improving efficiency.
You should load and save file formats in attachment fields as follows:
for more information, visit http://msdn.microsoft.com/pt-br/library/bb258184%28v=office.12%29.aspx