View Single Post
 
Old 12-23-2009, 12:04 AM
advin advin is offline Windows XP Office 2007
Novice
 
Join Date: Dec 2009
Posts: 2
advin is on a distinguished road
Default Access MailMerge DataSource in VB

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!

regards, advin
Reply With Quote