Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trying to add an outlook attachment to a table w attachment field

Status
Not open for further replies.

Pack10

Programmer
Feb 3, 2010
495
US
I am trying to add an email attachment to an attachment type field in a table thru code. Does anyone have a routine that does this so I can see what I am doing wrong.
This is my code.

For Each Atmt In objMessage.Attachments
strFileName = Atmt.FileName
Set fldAttach = rstChild.Fields("FileData")
fldAttach.LoadFromFile strFileName
rstChild.Update

Next Atmt
 
What about this ?
...
strFileName = "C:\TEMP\" & Atmt.DisplayName
atmt.SaveAsFile strFileName
...

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Hi

How do I get it into the attachment field in a table.
I am building a split form for a supervisor and I want her to be able to click on the paper clip icon and see the attachments in the grid. The attachment field will look like a paper clip. When clicked the items saved in the field will display. I can't seem to get the files into the attachment field.
Any help would be great. Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top