The information in this article applies to:
Novice: Requires knowledge of the user interface on single-user computers. SYMPTOMSWhen you enter dates by using two-digit years in Microsoft Access version 2.0, the year is always placed between 1900 and 1999. CAUSEMicrosoft Access 2.0 assumes that all two-digit years are between 1900 and 1999. RESOLUTION
When you enter dates in Access 2.0, enter the dates by using four-digit years.
STATUSMicrosoft has confirmed this to be a problem in Microsoft Access 2.0. This problem is resolved by the Microsoft Access 2.0 Date Update. Q231408 ACC2: Access 2.0 Two-Digit Date Update Available in Download Center MORE INFORMATIONWhen you install the Access 2.0 Date Update described in the "Status" section, the following functionality will be updated or added to Access 2.0:
Access 2.0 Now Supports a Sliding Date WindowThe 100 year sliding date window provides a range of years that defines where any given two-digit year falls. For example, if you have defined a 100 year sliding date window from 1930 to 2029, two-digit years between 00 and 29 will fall in the 2000s whereas two-digit years between 30 and 99 will fall in the 1900s. You add the setting for the sliding window for Access 2.0 in the Win.ini file. To add the setting to the Win.ini file, open the file in any text editor, such as Notepad, and add the following section:[Microsoft Access 2.0]In the new section, add the following setting: TwoDigitYearMax = The maximum year in your windowFor example, if you want to have a sliding date window from 1930 to 2029, add the following to the Win.ini file: [Microsoft Access 2.0]If you do not set the value for the sliding date window, Access 2.0 will assume that two-digit years fall within the 1900s. Two-Digit Years in Property Sheets and the Query Design Grid Will Be Displayed as Four-digit YearsWhen you enter date values or expressions that contain date values into property sheets or the query design grid, dates that contain two-digit years will be displayed according to the 100 year sliding date window. If you have not set the sliding date window as described in the "Access 2.0 Now Supports a Sliding Date Window" section, the dates will be displayed as falling between 1900 to 1999.The following is a list of properties that you might enter dates into: Table Properties:
Two-digit Years in Access Modules Will Be Displayed as Four-Digit YearsWhen you enter a literal date into a module, the date is stored as a double-precision, decimal value that represents a specific date. After the update is applied to a computer, literal dates containing two-digit years will be stored and displayed according to the sliding date window defined in the Win.ini file. Examples of literal dates in modules include:
Dates Entered Without a Year Will Fall Within Current YearThis update fixes a problem in Access 2.0 that causes dates without years to return the incorrect system year if the system clock is set to the year 2000 or later.Dates with Two-Digit Years Imported from Text Files Will Be Interpreted as Falling Between 1930 and 2029When you import a text file that contains dates that have a two-digit year, the date is always considered as falling between 1930 and 2029. Dates imported from text files do not use the sliding date window defined by the Win.ini file. For additional information about importing text files with dates into Access 2.0, please click the article number below to view the article in the Microsoft Knowledge Base:Q230593 ACC2: All Two-Digit Dates Imported from Text Resolved in 1900s Important Information about Existing Dates in Your DatabaseWhen you install the Access 2.0 Date Update, the dates stored in your existing databases are not automatically converted from two-digit to four-digit dates. You must consider three important facts when using existing databases that contain dates in property sheets, the query design grid, or Access modules.
REFERENCESFor additional information about how Access stores Date/Time values, please see the "More Information" section of following article in the Microsoft Knowledge Base: Q130514 ACC: Storing, Calculating, and Comparing Date/Time DataFor more information about how Microsoft products are affected by year 2000 (Y2K) issues, please see the following Microsoft World Wide Web site: http://www.microsoft.com/year2000/ Additional query words: pra Access Y2K year date
Keywords : kbdta |
Last Reviewed: December 13, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |