Shamil Salakhetdinov
shamil at users.mns.ru
Wed Mar 29 02:34:16 CST 2006
> cmd3_click > Is this an ok way? Borge, Yes, that's OK. Although if you need to call the code of a button's Click event from several parts of your form's code or even from outside of the form's module then you'd better separate this code into a (public) function/sub. > Me("cmd3") ????click You cannot call Click event of a button - you can indirectly force it to be triggered/fired, e.g. this way: Me("cmd3").SetFocus SendKeys "{Enter}" Shamil ----- Original Message ----- From: "Borge Hansen" <pcs at azizaz.com> To: "Access Developers discussion and problem solving" <accessd at databaseadvisors.com> Sent: Wednesday, March 29, 2006 11:05 AM Subject: [AccessD] Click Event > Here's a less abstract question: > > We are in a Form's code module > > I have code on the click event of a command button, called say cmd3 > > Anywhere in the code module I can call the click event like this: > cmd3_click > > Is this an ok way? > > Further, how can I called the click event of the same command button in > this > context: > > Me("cmd3") ????click > > thanks for any quick reply > > regards > borge > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com