ACC: Objects Cannot Be User-Defined Data Type ElementsID: Q96420
|
Advanced: 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.
Objects predefined by Microsoft Access are not supported as user-defined data type elements.
This behavior no longer occurs in Microsoft Access version 7.0.
Microsoft 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.
Type ControlInfo
Ctl as Control
End Type
For 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
Version : 1.0 1.1 2.0
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: March 19, 1999