A Microsoft Word forum. Microsoft Office Word Forum - WordBanter

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 » Microsoft Office Word Forum - WordBanter forum » Microsoft Word Newsgroups » Mailmerge
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Query String in Mail Merge XP



 
 
Thread Tools Display Modes
  #1  
Old January 13th 05, 10:50 PM
karen lyons via OfficeKB.com
external usenet poster
 
Posts: n/a
Default Query String in Mail Merge XP

Hi, We've been creating mail merge documents using a datasource with Word 2000 with the following code to exclude items from the completed mail merge document. On using XP this code no longer works - the document is displayed, but extra lines are created.

wordMailMerge:OpenDataSource(ip-datafile, 4).

ip-filter = substitute("SELECT * FROM &1 WHERE (&2)", ip-datafile, ip-filter).
wordMailMergeataSource:QueryString = ip-filter.


NOTE: ip-filter = ((sernum is NULL))

Any help would be greatly appreciated.

--
Message posted via http://www.officekb.com
Ads
 




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 On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail Merge Word 2003 Issue S.Nicks Mailmerge 5 February 20th 09 01:55 AM
mail merge with attachments AS Mailmerge 5 April 9th 05 09:49 AM
Word-Excel 2003 - Mail Merge Recipients problem AYager Mailmerge 2 January 11th 05 04:11 AM
mail merge and access query DaveAS Mailmerge 6 January 6th 05 06:33 PM
Using Hyperlinks in Mail Merge IF...THEN...ELSE Statements Mark V Mailmerge 8 November 30th 04 01:31 PM


All times are GMT +1. The time now is 04:42 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright 2004-2020 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.