Hallo,
I'm trying to acces the DataSource via
Code:
Doc.MailMerge.DataSource.DataFields(INDEX/FIELDNAME).Value
usually this is no problem, but in case of two fields i get an error stating that the memory is corrupt/ or an Automation error!
I have no problems accessing the Name property via: Code:
Doc.MailMerge.DataSource.DataFields(INDEX/FIELDNAME).Name
!
Any ideas what wrong with those two fields?
p.s.: when running the merge ALL fields are populated correctly! Only accessing the fields via VBA is causing an error!
Here's the detailed error message:
"Runtimeerror '-2147417848 (80010108)':
Automation error
The called object was disconnected from the clients"
<- i translated it on my own as i recieve a german error!
regards, advin