Drew Wutka
DWUTKA at Marlow.com
Fri May 16 11:48:05 CDT 2008
What's holding it? Is this a bas module, or a class module,that contains the callback function? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 16, 2008 11:42 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] cbo Callback - method Drew, That is not happening here. I place a debug.Print in the init event of the class and it fires exactly once. In fact I can close and reopen the test form and it does not fire again (as it should not). This code in the main function: ' 'checks if the class is initialized If mclsCallback Is Nothing Then Set mclsCallback = New clsCallBack If mdb Is Nothing Then Set mdb = CurrentDb End If End If checks if the mclsCallback is initialized and does not initialize it again. John W. Colby www.ColbyConsulting.com Drew Wutka wrote: > Do you realize that you are creating an instance of this class for each > callback? > > No wonder it's sluggish! (To check, but a debug statement into your > initialize event). > > Drew -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited.