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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MAILMERGE TEMPLATE DATASOURCE PROBLEM Re: FAQ705-3237

Status
Not open for further replies.

DNRUDGE

Programmer
Feb 10, 2004
6
0
0
GB
I have very little VBA knowledge and am copying the code in FAQ705-3237 (How to Automate Word Mail Merge From Access) but am confused about the datasource to be specified in the Word template document. The faq code has 2 SQL statements defined, one is the code for the QueryDef and the other, I think, will be "Select * from myquerydefquery where x = y".

My question is: In the Word template, how do I set the datasource to be my Access query when my QueryDef is only created at run-time?

Any help greatly appreciated,thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top