Article ID: 211729 - Last Review: December 2, 2005 - Revision: 1.4 WD2000: ErrMsg: "Word could not merge the main document with the data source because the data records were empty or no data records matched your query options."This article was previously published under Q211729 On This PageERROR MESSAGE
When you try to merge a range of records from your data source, the
following error message may appear:
Word could not merge the main document with the data source because the
data records were empty or no data records matched your query options.
http://www.microsoft.com/downloads/details.aspx?FamilyID=8FBEE1D3-C5BB-4A36-A2F7-DC63DE2A818C
(http://www.microsoft.com/downloads/details.aspx?FamilyID=8FBEE1D3-C5BB-4A36-A2F7-DC63DE2A818C)
NOTE: If you reached this article by clicking the Web Info button in an error message, you already have Customizable Alerts enabled.
CAUSETHINGS TO TRYThe query condition you are trying to set in the query options does not match your data source.Use one of the following methods appropriate for your situation. Method 1: Correct Your Query OptionsEdit your data source and make sure that the "Compare to" of your query options matches exactly the data contained in your data source. For example, if you are trying to set a query option to filter the FirstName field to match a particular first name, make sure that the name is contained in the FirstName column of your data source.NOTE: The FirstName field value must match EXACTLY the value you typed in the "Compare to" field of your query option (query option values are case-sensitive). Method 2: Reattach Your Data SourceWhen you attach and save a data source to a mail merge main document, Word "remembers" which data source is attached by saving the attached file's path and file name in the main document. Word also remembers the query options that may have been previously set.Use the following steps to reattach your mail merge main document to your data source:
Method 3: Merge Each Record IndividuallyTo work around this problem, instead of merging to a new document or to the printer with query options set, follow these steps:
MORE INFORMATION
As an example of the situation that causes the error message, if you have
the following records in your data file
Record_Number First_Name Last_Name
-----------------------------------------
1 Erin O'Melia
2 Suanne Nagata
3 Mark Lee
4 Jeff Smith
and you instruct Word to merge records 2 through 4, and you set the query options to filter those records in which First_Name is equal to Smith, Word displays the error message.
| Article Translations
|
Back to the top
