Charlotte Foust
cfoust at infostatsystems.com
Wed Feb 19 10:39:00 CST 2003
Bryan, Have you ever used WithEvents in a form's class module to handle something like automation of another form or to determine when a button is clicked on that other form? In a stand alone class module, you do pretty much the same thing, bind the object to the custom class and use WithEvents to tell the application how to respond to the events that occur in that object. John's framework and Shamil's DEEP examples might be a bit hard to digest, but there are simple class examples out there that surely can help you wrap your brain around the concept. Compared to some possible class uses, WithEvents is a simple concept. Charlotte Foust -----Original Message----- From: Bryan Carbonnell [mailto:carbonnb at sympatico.ca] Sent: Monday, February 17, 2003 2:47 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Just curious 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. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com