PRB: Can't Use ActiveForm to Reference Data Control in VB 3.0 (101252)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition for Windows 3.0
This article was previously published under Q101252 SYMPTOMS
Using the ActiveForm Property of the Screen control or an MDI Parent
form to reference a Data control causes a "Type Mismatch" error in
Visual Basic.
CAUSE
This behavior is by design. This is not a bug in Visual Basic. The
Visual Basic environment does not know in advance that the Active form
will actually contain a Data control, so it generates a "Type mismatch"
error.
WORKAROUND
To avoid the error message, use global objects to reference the local
controls. The "More Information" section below demonstrates one method
for doing this.
STATUS
This behavior is by design.
Modification Type: | Minor | Last Reviewed: | 1/8/2003 |
---|
Keywords: | kbprb KB101252 |
---|
|