Word Automation (bitmap image) (1 Viewer)

tamangspace

Registered User.
Local time
Today, 14:41
Joined
Jul 15, 2012
Messages
37
Dear Experts,

Please don't laugh at me because I didn't learn access in academic courses. I am learning from Internet and specially from this forum.

I am using Office 2013.

I have created Ms Word Form for automation from ms access. All the fields in word documents work perfectly. But I wondered that the photo displaying in access form couldn't be retrieved in word form.
Actually I don't know how to pull the bitmap image from access form to word.
For other text fields I have the code:
Code:
With doc

.FormFields("EmpName").Result = Me!EmpNAME

.FormFields("firstname").Result = Me![First Name]

.FormFields("middlename").Result = Me![Middle Name]

.FormFields("lastname").Result = Me![Last Name]
NATIONALITY.SetFocus
.FormFields("nationality").Result = Me![NATIONALITY].Text
But what is the field type for bitmap image? and what is the code? The below code couldn't retrieve the photo and the field remains empty. The photo is an OLE Object in table field [Photo].
Code:
.FormFields("Image1").Result=Me![Photo]
I know I can use access report to print the documents with photo like this. But I want to know how to do with word?

I googled hours for this issue but couldn't find any!

If it is possible, please help me.
 

Users who are viewing this thread

Top Bottom