The information in this article applies to:
SYMPTOMSFrom Visual Basic, when trying to specify a field Format property of an Access table (for example, field type DateTime) from blank to "Long Date" format, the following error occurs:
CAUSEThe property data type constant should always be "dbText." If other data type constants, such as dbDate or dbNumeric are specified, you will encounter the error described above. STATUSThis behavior is by design. MORE INFORMATIONThe following Visual Basic 5.0 example creates a new field object MyNewDate with data type dbDate, and appends it to the Fields collection. It then specifies the Format property with the value "Long Date." Note that the Format property is specified as "dbDate," which is incorrect. To correct the problem, you should change:
to:
Steps to Reproduce Behavior
REFERENCESFor more information please reference the following articles: Q170549 HOWTO: Read or Modify User-Defined DAO Properties Q178745 ACC: Using DAO to Set and Retrieve Custom Data Properties Additional query words: kbdse kbDSupport kbVBp kbVBp400 kbVBp500 kbVBp600 kbDAO350 kbDatabase
Keywords : kbGrpVBDB |
Last Reviewed: January 5, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |