[AccessD] WithEvents - Why doesn't my Access like it?

Tina Norris Fields tinanfields at torchlake.com
Thu Nov 18 11:57:01 CST 2004


Okay, I just figured it out.  What I failed to do was make sure I was 
creating a class module!  Arrgh!  I'm banging my head against the wall. 
 Thanks for responding.  It's been a long few days.
Tina

John W. Colby wrote:

>You copied and pasted from my demo and it is not compiling?
>
>John W. Colby
>www.ColbyConsulting.com 
>
>Contribute your unused CPU cycles to a good cause:
>http://folding.stanford.edu/
>
>-----Original Message-----
>From: accessd-bounces at databaseadvisors.com
>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tina Norris
>Fields
>Sent: Thursday, November 18, 2004 12:24 PM
>To: DatabaseAdvisors-Access
>Subject: [AccessD] WithEvents - Why doesn't my Access like it?
>
>
>Hello all you gurus -
>Is WithEvents not an acceptable keyword in AccessXP (file format Access 
>2000)?  I am playing with code from John Colby's demos, and in my 
>module, which is a straight copy of his, the line
>"Private WithEvents mtxt As TextBox" is red, which usually means Visual 
>Basic doesn't recognize the keywords I've used.  Is there a version 
>problem possibly?  My VBA says it is 6.3.8863.  Any clues here would be 
>very much appreciated.  It's especially confusing to me, since in John's 
>code the keywords remain a nice blue.  What am I missing?
>Tina
>
>  
>





More information about the AccessD mailing list