The information in this article applies to:
SYMPTOMS
Moderate: Requires basic macro, coding, and interoperability skills.
CAUSEThe Month() function converts a date to an integer. The Format() function is expecting a date serial number as an argument, but instead receives an integer. STATUSThis behavior is by design. MORE INFORMATION
The following sample function returns January instead of April:
To return just the name of the month, use the Format() function without the Month() function. For example, the following expression returns April:
If the Month() function is required, use the Choose() function to return the name of the month. The following example demonstrates how to use the Choose() function: NOTE: In the following example, an underscore (_) is used as a line- continuation character. Remove the underscore from the end of the line when re-creating the example.
REFERENCESFor information about syntax and usage of the Choose function, search the Help Index for "Choose function."
Keywords : ExrOthr |
Last Reviewed: March 27, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |