Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
weisinator weisinator is offline
external usenet poster
 
Posts: 2
Default doc.Mailmerge.datasource.querystring=strSQL; Command Failed: Run-Time error 4198

On Feb 13, 12:46 pm, "Peter Jamieson"
wrote:
- snip -
SELECT * FROM Addrss does not work from Word but AFAIK it is OK in Access;
SELECT * FROM [Addrss] works in both. However, as far as I know if you alias
your table names as you have then the syntax works OK in Word. Might be
worth just checking that.

Peter Jamieson


I changed one line in the query:

& "FROM Addrss AS a, Ppl AS p, GrpMmbr AS g " _

to:

& "FROM [Addrss] AS a, [Ppl] AS p, [GrpMmbr] AS g " _

It works now!

Thank you Peter!

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
Mailmerge, querystring and (un)logical SQL (Word 2003) FP Mailmerge 14 June 30th 06 03:33 PM
Mailmerge datasource LuckyLady Mailmerge 1 September 2nd 05 06:26 PM
Mailmerge Querystring Problems hals left Mailmerge 2 August 23rd 05 03:31 PM
Word failed to start correctly the last time composer Microsoft Word Help 1 May 19th 05 06:05 AM
Multiple templates using one datasource at the same time cth5c Mailmerge 1 March 17th 05 03:11 PM


All times are GMT +1. The time now is 10:26 AM.

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"