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!

Send query to mail merge doc

Status
Not open for further replies.

696796

Programmer
Aug 3, 2004
218
GB
Hi experts,

Any ideas how i can send a query through so that it powers a mail merge document in ms word?

Any help much apreciated guys and gals,

Al
 
Ok sure,

Sometimes a mail merge is powered by a query that could be stored in your access database. This is a static query which cannot be changed and is bound to the document.

Now what i was thinking was if i built the sql statement in vb.net, and open the mailmerge document sending through the query to the document so that it can be used as the datasource...

Cheers for the help :)
 
We have a good number of mail merge letters here. We have a system that pulls relevant data, formats, and processes it, then spits out a delimited text file. The mail merge template points at that text file. We have a few luxeries though, all of our users had an H: drive, so we can run all of the text files out to a processing folder on that drive and we don't have to worry about attaching the source at run time.

-Rick

VB.Net Forum forum796 forum855 ASP.NET Forum
[monkey]I believe in killer coding ninja monkeys.[monkey]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top