Вложения сильно отличаются от объектов OLE.Первые должны быть сжаты и управляться без установленных на компьютере серверов OLE.Например, когда вы добавляете объект OLE в поле MS-Access, этот объект преобразуется в своего рода растровое изображение, которое должно быть очень большим.В полях вложений несколько форматов файлов автоматически сжимаются в базе данных.Кроме того, вы можете импортировать более одного файла.В этом случае Access делает за кулисами модель реляционной базы данных для повышения эффективности.
Вы должны загрузить и сохранить форматы файлов в полях вложений следующим образом:
' Instantiate the parent recordset.
Set rsEmployees = db.OpenRecordset("Employees")
'… Code to move to desired employee
' Activate edit mode.
rsEmployees.Edit
' Instantiate the child recordset.
Set rsPictures = rsEmployees.Fields("Pictures").Value
' Add a new attachment.
rsPictures.AddNew
rsPictures.Fields("FileData").LoadFromFile "EmpPhoto39392.jpg"
rsPictures.Update
' Update the parent record
rsEmployees.Update
' Instantiate the parent recordset.
Set rsEmployees = db.OpenRecordset("Employees")
'… Code to move to desired employee
' Instantiate the child recordset.
Set rsPictures = rsEmployees.Fields("Pictures").Value
' Loop through the attachments.
While Not rsPictures.EOF
' Save current attachment to disk in the "My Documents" folder.
rsPictures.Fields("FileData").SaveToFile _
"C:\Documents and Settings\Username\My Documents"
rsPictures.MoveNext
Wend
для получения дополнительной информациипосещение http://msdn.microsoft.com/pt-br/library/bb258184%28v=office.12%29.aspx