Forum Home
Press F1
 
Thread ID: 20484 2002-06-06 04:34:00 Office XP (Word2002 mailmerge problem) Guest (0) Press F1
Post ID Timestamp Content User
52776 2002-06-06 04:34:00 I am trying to write a basic marcro in word 2002 that searches a record from a datasource and prints the document.
The code from MS in VBA help is -
Dim dsMain As MailMergeDataSource
Dim numRecord As Integer

ActiveDocument.MailMerge.ViewMailMergeFieldCodes = False
Set dsMain = ActiveDocument.MailMerge.DataSource
If dsMain.FindRecord(FindText:='Joe', _
Field:='FirstName') = True Then
numRecord = dsMain.ActiveRecord
End If
The code works fine in Office2000(Word2000) but doesn't work in Word20002.
Can anyone help.

Regards,
Wayne
Guest (0)
1