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

Last reviewed: August 5, 1997
Article ID: Q135285
The information in this article applies to:
  • Microsoft Word for Windows 95, versions 7.0, 7.0a
  • Microsoft Word 97 for Windows

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 kbenv
Version : 7.0 7.0a 97
Platform : WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: August 5, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.