Hi,
I have a table in SQL with an image data type field which can contain files.
I can manually add records to this in Access (field appears as OLE Object data type).
Im trying to add records to this field using VB/VBA.
Im attempting to add a record using the .addnew method. I've tried assigning a file to the field directly and i've tried assigning a file to an OLE object on a form (that bit worked) and then assigning that object to the field in question (that didnt).
I know the code is incorrect but this is what Im attempting:
With objRec
.AddNew
!CompanyID = 2
!email.CreateEmbed "C:\test.rtf", "package"
.Update
End With
Where email is the image field.
Any helps or ideas on where to look would be much appreciated.
I have a table in SQL with an image data type field which can contain files.
I can manually add records to this in Access (field appears as OLE Object data type).
Im trying to add records to this field using VB/VBA.
Im attempting to add a record using the .addnew method. I've tried assigning a file to the field directly and i've tried assigning a file to an OLE object on a form (that bit worked) and then assigning that object to the field in question (that didnt).
I know the code is incorrect but this is what Im attempting:
With objRec
.AddNew
!CompanyID = 2
!email.CreateEmbed "C:\test.rtf", "package"
.Update
End With
Where email is the image field.
Any helps or ideas on where to look would be much appreciated.