A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Mailmerge
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

mail merge from 2 separeted tables?



 
 
Thread Tools Display Modes
  #1  
Old August 31st, 2004, 09:30 AM
gioulil
external usenet poster
 
Posts: n/a
Default mail merge from 2 separeted tables?

Hi! I wanted to ask if it is possible to have 2 different
tables where I get my data in the same document!I use mail
merge all the time and I get my data always from 1 table
(usually Excel), but this time I want to use 2 different
ecxel sheets?? So is it possible to have 2 different data
sources in 1 mail merge document??

Thanks in advance
  #2  
Old August 31st, 2004, 02:56 PM
Peter Jamieson
external usenet poster
 
Posts: n/a
Default

So is it possible to have 2 different data
sources in 1 mail merge document?


No, there can only be one "Data Source".

It may be possible to work around this but it depends on what you want to do
and what data you have in your spreadsheets. If, for example, the columns in
your two sheets are the same and you just want to treat the data as if the
second sheet's data followed the first, then
a. the simplest approach is just to combine the contents of the two sheets
into a new Excel sheet, and use that as the data source. You could do that
manually or probably using some Excel VBA.
b. it is possible to use Word VBA'sOpenDataSource method, the ODBC
connection method, and an SQL UNION query to get the data from both sheets.
Personally, I'd avoid attempting that unless I really had to.
--
Peter Jamieson

"gioulil" wrote in message
...
Hi! I wanted to ask if it is possible to have 2 different
tables where I get my data in the same document!I use mail
merge all the time and I get my data always from 1 table
(usually Excel), but this time I want to use 2 different
ecxel sheets?? So is it possible to have 2 different data
sources in 1 mail merge document??

Thanks in advance



  #3  
Old September 1st, 2004, 12:18 PM
gioulil
external usenet poster
 
Posts: n/a
Default

Thanks a lot!

I think the best solution is one new spraedsheet!!!
Thanks again

-----Original Message-----
So is it possible to have 2 different data
sources in 1 mail merge document?


No, there can only be one "Data Source".

It may be possible to work around this but it depends on

what you want to do
and what data you have in your spreadsheets. If, for

example, the columns in
your two sheets are the same and you just want to treat

the data as if the
second sheet's data followed the first, then
a. the simplest approach is just to combine the contents

of the two sheets
into a new Excel sheet, and use that as the data source.

You could do that
manually or probably using some Excel VBA.
b. it is possible to use Word VBA'sOpenDataSource

method, the ODBC
connection method, and an SQL UNION query to get the data

from both sheets.
Personally, I'd avoid attempting that unless I really had

to.
--
Peter Jamieson

"gioulil" wrote in message
...
Hi! I wanted to ask if it is possible to have 2

different
tables where I get my data in the same document!I use

mail
merge all the time and I get my data always from 1 table
(usually Excel), but this time I want to use 2 different
ecxel sheets?? So is it possible to have 2 different

data
sources in 1 mail merge document??

Thanks in advance



.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Secured DB for a Word Mail Merge problem Tony_VBACoder General Discussion 1 August 30th, 2004 10:11 PM
Secured DB for a Word Mail Merge problem Tony_VBACoder Mailmerge 0 August 30th, 2004 07:32 PM
Word-Excel 2000 Mail Merge Failure Jim Mailmerge 1 August 12th, 2004 02:43 PM
Mail Merge Recipient Window Sharon Mailmerge 5 June 9th, 2004 04:09 PM
Break up Mail Merge into separate documents Mailmerge 6 May 15th, 2004 06:24 AM


All times are GMT +1. The time now is 06:00 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.