ACC: Objects Cannot Be User-Defined Data Type ElementsLast reviewed: June 8, 1997Article ID: Q96420 |
The information in this article applies to:
SYMPTOMSAdvanced: Requires expert coding, interoperability, and multiuser skills. When you attempt to use a Microsoft Access defined object data type as a user-defined data type element, you may receive the following error message:
Expected: Integer or Long or Single or Double or Currency or String or Variant or Identifier. CAUSEObjects predefined by Microsoft Access are not supported as user-defined data type elements.
STATUSThis behavior no longer occurs in Microsoft Access version 7.0.
MORE INFORMATIONMicrosoft Access defines eight object data types: Control, Database, Dynaset, Form, QueryDef, Report, Snapshot, and Table. You can use the Type statement in the Declarations section of a module to define your own data type. The user-defined data type cannot be one of the eight predefined data types.
Steps to Reproduce Behavior
REFERENCESFor more information, search for "Type Statement," and then "Object Data Types" using the Microsoft Access Help menu. Microsoft Access "Introduction to Programming," version 1.0, Chapter 5, "Variables, Constants, and Data Types," page 43 |
Keywords : kbprg PgmDecl
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |