Reply
 
Thread Tools Display Modes
  #1   Report Post  
Nick
 
Posts: n/a
Default HELP - Connecting to ADODB Datasource for a MaiMerge

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
  #2   Report Post  
Peter Jamieson
 
Posts: n/a
Default

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
"Nick" wrote in message
...
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



  #3   Report Post  
Nick
 
Posts: n/a
Default

That sucks. Thanks Peter. So then a .txt file will suffice??

Nick


Peter Jamieson wrote:
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
"Nick" wrote in message
...

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




  #4   Report Post  
Peter Jamieson
 
Posts: n/a
Default

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

"Nick" wrote in message
...
That sucks. Thanks Peter. So then a .txt file will suffice??

Nick


Peter Jamieson wrote:
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
"Nick" wrote in message
...

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




Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't find datasource except when the main doc is open. Where is i Ruth Mailmerge 2 June 15th 05 11:14 AM
Using Secured Access Database as Datasource Josh Mailmerge 2 January 18th 05 02:33 PM
cant open mailmerge datasource saj via OfficeKB.com Mailmerge 0 January 5th 05 04:19 PM
word 97 mailmerge with paradox files as datasource saj via OfficeKB.com Mailmerge 0 December 24th 04 01:14 PM


All times are GMT +1. The time now is 10:33 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"