Microsoft KB Archive/285168

= WD2000: Error Message with Mail Merge Using MS Query Data Source =

Article ID: 285168

Article Last Modified on 8/30/2005

-

APPLIES TO


 * Microsoft Word 2000 Standard Edition

-



This article was previously published under Q285168



IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry



SYMPTOMS
When you try to use a query that was created in MS Query as a data source for a Word mail merge document, you receive the following error message:

Cannot Group on Fields Selected with '*'

When you click Details in the error message dialog box, you receive the following information:

ODBC error: [Microsoft][ODBC Microsoft Access Driver]Cannot group on fields selected with ''*' Sql State: S1000 Return Code: SQL_ERROR



CAUSE
This problem occurs when the SQL string query contains a GROUP_BY statement, or some other SQL statement, that is incompatible with SELECT *. Typically, this occurs when the query contains a calculation; for example, an average over a group of records.



RESOLUTION
To resolve this problem, obtain the latest service pack for Microsoft Office 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

276367 OFF2000: How to Obtain the Latest Office 2000 Service Pack

IMPORTANT: Before you install Microsoft Office 2000 Service Pack 3 (SP-3), you must have Microsoft Office 2000 Service Release 1/1a (SR-1/SR-1a) installed first. To obtain Office 2000 Service Release 1/1a (SR-1/SR-1a), click the article number below to view the article in the Microsoft Knowledge Base:

245025 OFF2000: How to Obtain and Install Microsoft Office 2000 Service Release 1/1a (SR-1/SR-1a)



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in the Microsoft Word 2000 Security Update: Macro Vulnerability.

Additional query words: word2000 word 2k mailmerge query errmsg

Keywords: kbbug kbfix kboffice2000sp3fix KB285168

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.