The information in this article applies to:
SUMMARY
In Microsoft Excel 5.x or 7.0, if you use the XLODBC.XLA function
SQL.REQUEST to return data to your worksheet, you cannot apply a number
format to the data by choosing the Number command from the Format menu.
MORE INFORMATIONTo work around this limitation, you may use the TEXT function to reformat the data. For example, the following formula returns the text "6/5/1987": =SQL.REQUEST("DSN=NWind",,,"SELECT Hire_Date FROM Employee WHERE Last_Name = 'Davolio'")This formula can be modified so that the date is displayed in a different Date format. For example, the following formula returns the text "Jun-05- 1987": =TEXT(SQL.REQUEST("DSN=NWind",,,"SELECT Hire_Date FROM Employee WHERE Additional query words: 5.00a 5.00c
Keywords : xlformat |
Last Reviewed: October 5, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |