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

OpenDataSource Error

Status
Not open for further replies.

fazman

Programmer
Mar 22, 2001
6
AU
Hi,
I'm trying to mail merge a .doc from a Vb application, and when i try to do opendatasource i get a confirm Data source msgbox which lists all kinds of connection propoerties.

here is the line of code...
oDoc.MailMerge.Application.ActiveDocument.MailMerge.OpenDataSource Name:="", Connection:=sConn, SQLStatement:=sSQL, subType:=wdMergeSubTypeWord2000

i don't want to ask which datasource to open at run time ...

please help ... i have searched the net and could not find anything useful.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top