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

John W. Colby jwcolby at colbyconsulting.com
Thu Nov 18 12:12:49 CST 2004


LOL>  Yea, it should tell you that syntax is not valid outside of a class or
something similar.

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:57 PM
To: Access Developers discussion and problem solving
Subject: Re: [AccessD] WithEvents - Why doesn't my Access like it?


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
>
>  
>


-- 
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com






More information about the AccessD mailing list