Microsoft KB Archive/259347

= XL2000: Error Message: ORA-00923:FROM Keyword Not Found Where Expected =

Article ID: 259347

Article Last Modified on 1/27/2005

-

APPLIES TO


 * Microsoft Excel 2000 Standard Edition
 * Microsoft Query 2000

-



This article was previously published under Q259347



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
In Microsoft Query, when you use an alias in a query to an Oracle database, and you employ an aggregate, the query does not succeed, and you receive the following error message:

ORA-00923:FROM keyword not found where expected.



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

After you install the latest service pack from Microsoft Office 2000, you must add and configure the AllowAlias registry key to enable this fix. To do this, follow these steps. WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.  Quit Excel 2000 if it is running. . Click Start, and then click Run. In the Open box, type regedit, and then click OK. Verify that the following key exists. If it does, go to step 4. Options If the key path does not exist, create the key path:  Locate and select the following registry key:  On the Edit menu, click New, and then click Key. Type Office, and then press ENTER.</li> On the Edit menu, click New, and then click Key.</li> Type 9.0, and then press ENTER.</li> On the Edit menu, click New, and then click Key.</li> Type Query, and then press ENTER.</li> On the Edit menu, click New, and then click Key.</li> Type Options, and then press ENTER.</li></ol> </li> On the Edit menu, click New, and then click DWORD Value.</li> Type the following name for the new value: AllowAlias .</li> Press ENTER.</li> Right-click the new DWORD value name, and then click Modify.</li> In the Value data box, type 0.

NOTE: To disable the fix, delete the AllowAlias key or set the value to 1.</li> When you are finished, click OK, and then quit Registry Editor.</li></ol>

WORKAROUND
To temporarily work around this problem, follow these steps:
 * 1) After you insert your table in the Tables pane in Microsoft Query, drag the fields into the display area.
 * 2) Double-click the heading for the field to which you want to apply the alias and aggregate.
 * 3) In the Column Heading box, type your alias in quotation marks. For example, type &quot;fred&quot; (including the quotation marks).
 * 4) In the Total list, click the aggregate function that you need. Click OK.

<div class="status_section">

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 Microsoft Office 2000 Service Pack 2.

Keywords: kbbug kbfix kboffice2000sp2fix kboffice2000presp2fix kbqfe KB259347

-

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

© Microsoft Corporation. All rights reserved.