Select the product you need help with
Using a field alias in Query does not work with some third-party databasesArticle ID: 298955 - View products that this article applies to. This article was previously published under Q298955 Symptoms When you try to use Microsoft Query to return data from
some third-party databases into Microsoft Excel, apostrophes (') around alias
names can cause the query to fail. The error message that you receive depends
on the data source that you use.
Cause This behavior is the result of a design change in Microsoft
Query. Apostrophes are now automatically used when aliasing, to prevent errors
that are caused by an alias that contains spaces or reserved words.
Resolution A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem. If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, submit a request to Microsoft Customer Service and Support to obtain the hotfix. Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site: http://support.microsoft.com/contactus/?ws=support Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.
(http://support.microsoft.com/contactus/?ws=support)
Excel 2003 and Excel 2007 You do not have to download anything to fix this problem in Microsoft Office Excel 2003 or in Microsoft Office Excel 2007. See the "More Information" section of this article for instructions about how to enable this functionality Excel 2002 The global Excel 2002 version of this hotfix has the file attributes (or later) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel. Collapse this table
Collapse this table
The global Excel 2000 version of this hotfix has the file attributes (or later) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel. Collapse this table
Collapse this table
Note After you install the fix that is described in this article, and set the AllowAlias registry key, Microsoft Query will behave as it did in Excel 97. WorkaroundMicrosoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements. To work around this issue, add quotation marks to the alias from inside Microsoft Query. To do this, follow these steps:
StatusMicrosoft
has confirmed that this is a problem in the Microsoft products that are listed
in the "Applies to" section of this article. More informationImportant This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base: 322756 After you install this hotfix, follow these steps to
set the AllowAlias registry key and to enable the hotfix. Use the appropriate
steps for your version of Excel.
(http://support.microsoft.com/kb/322756/
)
How to back up and restore the registry in WindowsExcel 2010 You do not have to install the hotfix. To enable this hotfix, follow these steps:
Excel 2007 You do not have to install the hotfix. To enable this hotfix, follow these steps:
You do not have to install the hotfix. To enable this hotfix, follow these steps:
This update was first included in Office XP Service Pack 3. For additional information about the latest service pack for Office XP, click the following article number to view the article in the Microsoft Knowledge Base: 307841 To enable this
hotfix, follow these steps:
(http://support.microsoft.com/kb/307841/
)
How to obtain the latest Office XP Service Pack
To enable this hotfix, follow these steps:
References If you do not have to use aliasing with Microsoft Query,
you can turn off aliasing completely. For additional information about how to turn off aliasing in Microsoft Query, click the following article number to view the article in the Microsoft Knowledge Base: 259347
(http://support.microsoft.com/kb/259347/
)
XL2000: Error Message: ORA-00923:FROM Keyword Not Found Where Expected
Properties | Article Translations
|



Back to the top








