John W. Colby
jwcolby at colbyconsulting.com
Tue Jan 13 09:36:51 CST 2004
LOL. That's especially amusing William because it is you who kept telling me "stop it with the tag stuff and just give me a function to load these things". See, I do listen occasionally. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of William Hindman Sent: Tuesday, January 13, 2004 10:15 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] =function() in .onclick ...great thread ...every once in a while I still manage to learn something from you :) William Hindman ----- Original Message ----- From: "John W. Colby" <jwcolby at colbyconsulting.com> To: "Access Developers discussion and problem solving" <accessd at databaseadvisors.com> Sent: Tuesday, January 13, 2004 9:43 AM Subject: RE: [AccessD] =function() in .onclick > Chris, > > I credit Shamil with teaching me everything I know about Withevents. I > would never have discovered them, and would not be where I am today in > Access without his examples and his prodding to look at WithEvents. > > If you looked at Shamil's stuff you will see where he places the [Event > Procedure] in the control's event procedure using code inside the Init event > of the class itself as the class instantiates. That is where I learned to > do this and one reason I so dislike developers putting function calls in > those properties. > > I used to use the tag property a lot using ADH code to set and read them. > Once I started using classes I moved away from that to either setting > properties directly in the class init or (in the case of my scanner, where > it's more generic) using class properties to set these values later. There > are pluses and minuses to using the tag - the control carries it's > initialization properties with it, but if any other developer uses the tag > yours can get trashed. I finally just stopped using it although there is > still ONE place I do, and that is in my Just In Time form loading, where I > place the form name in the tag. If it's there it will do JIT, otherwise it > just loads normally. > > I would like to thank you though for the hint about input masks. My users > have been pushing me to "standardize" the date inputmasks and using my > framework I can do just that quite easily. > > John W. Colby > www.ColbyConsulting.com