Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MailMerge and findRecord

Status
Not open for further replies.

MrStar

Programmer
Sep 30, 2002
53
DK
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top