Message 1 of 5
WithEvents Missing?

Not applicable
05-27-2002
07:26 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a variable in a Class Module declared as:
Dim WithEvents txtCell As TextBox
I need to use the Exit and/or BeforeUpdate Events, but these (and the Enter
and AfterUpdate) Events are not available to this variable.
How can I get these Events?
Note: I've checked in VB5.0 and Access 2000 VBA, and their TextBox has the
LostFocus and GotFocus Events available to a WithEvents variable.
Note: Acad 2002 VBA has the generic object Control that has only the 4
"missing" Events. Is this a coincidence? I tried assigning the TextBox to a
Control variable, but I get "Error #429 - object or class does not match the
set of events"
Does anybody know what's going on here??
Dim WithEvents txtCell As TextBox
I need to use the Exit and/or BeforeUpdate Events, but these (and the Enter
and AfterUpdate) Events are not available to this variable.
How can I get these Events?
Note: I've checked in VB5.0 and Access 2000 VBA, and their TextBox has the
LostFocus and GotFocus Events available to a WithEvents variable.
Note: Acad 2002 VBA has the generic object Control that has only the 4
"missing" Events. Is this a coincidence? I tried assigning the TextBox to a
Control variable, but I get "Error #429 - object or class does not match the
set of events"
Does anybody know what's going on here??