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  

Not all data sources showing



 
 
Thread Tools Display Modes
  #1  
Old June 25th, 2009, 04:08 PM posted to microsoft.public.word.mailmerge.fields
SAC[_5_]
external usenet poster
 
Posts: 18
Default Not all data sources showing

I'm using Word 2003.

When selecting data sources for a letter, I select an Access database, but
not all the queries show up after that. How can I get them to show for
selection?

Thanks for your help.


  #2  
Old June 25th, 2009, 06:04 PM posted to microsoft.public.word.mailmerge.fields
Peter Jamieson
external usenet poster
 
Posts: 4,550
Default Not all data sources showing

Some query types won't show (Union queries, and Parameter queries) when
you connect with the default method in Word 2003, which is OLE DB.
Typically you have to revert to the old DDE method (check Word
Tools-Options-Confirm conversion at open, then go through the
connection process again, and select the DDE option in the extra Confirm
box that appears). If you are in a position to modify the database, you
may be able to get some queries to run by wrapping them in a another
query that simply does

SELECT * FROM thequerythatOLEDBdoesnotsee

The problem with parameter queries OLE DB is that OLE DB itself has no
mechanism to prompt for the parameters, and nor does Word - with DDE,
Access does it. To work around that, you have to use e.g. Word VBA to
set up the parameters (prompting if necessary) then either generate the
SQL text that the Query would issue, or use a special technique to run
the query from Word VBA. I've never tired it for real, and it wouldn't
surprise me if Microsoft hadn't blocked that particular option since I
last looked.

Peter Jamieson

http://tips.pjmsn.me.uk

SAC wrote:
I'm using Word 2003.

When selecting data sources for a letter, I select an Access database, but
not all the queries show up after that. How can I get them to show for
selection?

Thanks for your help.


 




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


All times are GMT +1. The time now is 02:29 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.