Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Date/Time data type provides current year automatically


View products that this article applies to.

This article was previously published under Q286446
Novice: Requires knowledge of the user interface on single-user computers.

For a Microsoft Access 2000 version of this article, see 209557 (http://support.microsoft.com/kb/209557/EN-US/ ) .

For a Microsoft Access 97 version of this article, see 98802 (http://support.microsoft.com/kb/98802/ ) .
For a Microsoft Access 97 version of this article, see 98802 (http://support.microsoft.com/kb/98802/ ) .

↑ Back to the top


Summary

If you enter a partial date in a field that is assigned the Date/Time data type, Microsoft Access fills in the current year automatically.

↑ Back to the top


More information

If your field is assigned the Date/Time data type, and you want to indicate the current year, you do not have to type the year. This feature works for both tables and forms.

To reproduce this behavior, follow these steps:
  1. Create a new table, as follows:
       Table: DateTable
       --------------------------------
       Field Name: My Date [primary key]
       Data Type: Date/Time
    					
  2. On the View menu, click Datasheet View.
  3. Type 1/1, and then press TAB. Note that the value that you entered is displayed as 1/1/<current year>.

↑ Back to the top


Keywords: KB286446, kbhowto, kbdatetime, kbinfo

↑ Back to the top

Article Info
Article ID : 286446
Revision : 7
Created on : 3/29/2007
Published on : 3/29/2007
Exists online : False
Views : 525