WD: "Value Entered Does Not Match with the Specified Type"

ID: Q135285

The information in this article applies to:

SYMPTOMS

You get the following error message when you define a custom property of type Date when the value includes hyphens:

   The value entered does not match with the specified type.
   The value will be stored as text.

CAUSE

The Regional Settings for Short Date Style and Date Separator are defined using a slash (/) instead of a hyphen. (To locate this option, click the Windows Start button, point to Settings, click Control Panel, double-click Regional Settings, and then click the Date tab.)

STATUS

Microsoft has confirmed this to be a problem in Word versions 7.0 and 7.0a for Windows 95 and Word 97 for Windows. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

WORKAROUNDS

Method 1: Define the value as it is defined in the Regional Settings.

Method 2: Modify the Regional Settings so that the Short Date Style and the

          Date Separator are defined using a hyphen separator instead of a
          slash separator.

KBCategory: kbenv buglist7.0 KBSubcategory: kbtemplate Additional query words: 7.0 word7 winword word95 custom properties property word97 7.0a regional settings date format hyphen slash type value name error message
Keywords          : kbtemplate 
Version           : 7.0 7.0a 97
Platform          : WINDOWS

Last Reviewed: August 6, 1997