The information in this article applies to:
Moderate: Requires basic macro, coding, and interoperability skills. This article applies to a Microsoft Access database (.mdb) and a Microsoft Access project (.adp). SUMMARY
This article describes how to display only the last two digits of the
year. =Year(Now())displays all four digits of the current year (for example, 1999). In order to display only the last two digits of the year (for example, 99), use one of the following expressions: =Format(Now(),"yy") -or- =Right(Str(Year(Now())),2)The breakdown of expression 2 is as follows:
=Year(Now()) Mod 100 REFERENCESFor more information about the first expression, click Microsoft Access Help on the
Help menu, type format property - date/time data type in the Office Assistant or
the Answer Wizard, and then click Search to view the topic. Additional query words:
Keywords : kbusage kbdta ExrOthr |
Last Reviewed: September 3, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |