Hi all,
I've made the above work however, for my mail merge on word I get an error for 'String is longer than 255 characters'
As this is in a shared drive the path is longer than usual, is there any way around this? I've hid the path links for obvious reasons but see below
I've made the above work however, for my mail merge on word I get an error for 'String is longer than 255 characters'
As this is in a shared drive the path is longer than usual, is there any way around this? I've hid the path links for obvious reasons but see below
VBA Code:
ActiveDocument.MailMerge.MainDocumentType = wdFormLetters
ActiveDocument.MailMerge.OpenDataSource Name:="linkhere" _
, ConfirmConversions:=False, ReadOnly:=False, LinkToSource:=True, _
AddToRecentFiles:=False, _
WritePasswordDocument:="", Revert:=False, _
Format:=wdOpenFormatAuto, Connection:= _
"Provider=Microsoft.ACE.OLEDB.12.0;User ID=Admin;Data Source=linkhere;Mode=Read;Extended Properties=""HDR=YES;IMEX=1;"";Jet OLEDB:System database="""";Jet OLEDB:Registry Path="""";Jet OLEDB" _
, SQLStatement:="SELECT * FROM `Data$`", SQLStatement1:="", SubType:= _
wdMergeSubTypeAccess