Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / June 2005

Tip: Looking for answers? Try searching our database.

HELP - Connecting to ADODB Datasource for a MaiMerge

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nick - 21 Jun 2005 18:45 GMT
Hello,

I am trying to make a connection to a datasource that is an ADODB
Recordset in VB 6.  I have been trying with no success.  I have found
half answers on how to connect to .txt and .xls. datasources but nothing
on a recordset.
I have an ADODB Recordset that is created from a query executed from a
user.  I need to take that query result and then mail merge it with a
word document.

Does anyone know how to do this to help me out?  Is this even possible?

Thanks

Nick
Peter Jamieson - 21 Jun 2005 19:02 GMT
No, you can't merge directly from an ADO recordset - you have to save the
data to some sort of disk file in a format Word can work with.

Peter Jamieson
> Hello,
>
[quoted text clipped - 11 lines]
>
> Nick
Nick - 21 Jun 2005 20:59 GMT
That sucks.  Thanks Peter.  So then a .txt file will suffice??

Nick

> No, you can't merge directly from an ADO recordset - you have to save the
> data to some sort of disk file in a format Word can work with.
[quoted text clipped - 16 lines]
>>
>>Nick
Peter Jamieson - 21 Jun 2005 21:06 GMT
Should do, and it has the virtue of simplicity, but I would check with real
data, especially if you have multiline data or data with commas, double
quotes etc. Word sometimes has difficulty recognising the delimiters and
there's no way to specify them in code. If you're already familiar with
coding with ADO it might be worth using ADOX to create a .mdb and table and
ADO to populate it.

Peter Jamieson

> That sucks.  Thanks Peter.  So then a .txt file will suffice??
>
[quoted text clipped - 20 lines]
>>>
>>>Nick
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.