[AccessD] Just curious

Bryan Carbonnell carbonnb at sympatico.ca
Mon Feb 17 04:48:28 CST 2003


On 16 Feb 2003 at 23:12, John W. Colby wrote:

> Bryan,
> 
> >I can use classes. I can use WithEvents. I just can't seem to use
> >them
> together.
> 
> You can't use Withevents without using classes.  Maybe your problem is
> trying to use Withevents in a module?  ;-)

No my problem is my english :-). 

I have used WithEvents before in Word and Excel to get to "extra" 
Application level Events that MS "forgot" to give us access to by 
default. I just can't seem to wrap my brain around it in Access.

> All that Withevents is doing is moving the event sink for some event
> for some object into a custom class.  That is why I say it is a very
> simple concept and very easy to implement.

Fair enough. I can write the Word Application level WithEvents 
Code almost with my eyes closed now. Ever since I learned about 
this, it has become second nature to use this to get at those events.

> Why would you do this?  Let me give you a concrete, real life example.

I understand why. I think my block is that I don't have a concrete 
reason to do it and really try to figure it out. I don't have any Access 
projects on the go at the moment.

--
Bryan Carbonnell - carbonnb at sympatico.ca
Failure is not an option. It comes bundled with the software.





More information about the AccessD mailing list