I have an Access database with some queries in.
I Word I have made a document that use mailmerge with a query in access. This works, but I can't find out how to only merge with one record using the .findRecord on DataSource.
I have coded this:
With ActiveDocument.MailMerge
If .DataSource.FindRecord(FindText:="2000", _
Field:="postnr") = True Then
MsgBox "Data was found"
End If
End With
Bu no matter what I'm searching for, I will not find anything.
I Word I have made a document that use mailmerge with a query in access. This works, but I can't find out how to only merge with one record using the .findRecord on DataSource.
I have coded this:
With ActiveDocument.MailMerge
If .DataSource.FindRecord(FindText:="2000", _
Field:="postnr") = True Then
MsgBox "Data was found"
End If
End With
Bu no matter what I'm searching for, I will not find anything.