[AccessD] Multiple Unbound Text Boxes After Update Event

John W Colby jwcolby at gmail.com
Sun Feb 2 09:35:42 CST 2014


Or use a class and a control scanner. Then use a naming convention such that each control that needs 
this stuff done has some common text in the name.

John W. Colby

Reality is what refuses to go away
when you do not believe in it

On 2/2/2014 10:15 AM, Jim Dettman wrote:
>   As Shamil mentioned, you can with a text box class and with events, but
> it's a lot of work to hook it up.
>
>   What you can also do is write one procedure that accepts a form and control
> reference as string arguments, and then with some code set all the
> afterupdate events in the property sheet to that procedure.
>
>   I can dig out an example if you want.
>
> Jim.
> -----Original Message-----
> From: accessd-bounces at databaseadvisors.com
> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of ACTEBS
> Sent: Sunday, February 02, 2014 07:14 AM
> To: accessd at databaseadvisors.com
> Subject: [AccessD] Multiple Unbound Text Boxes After Update Event
>
> Hi Everyone,
>
>   
>
> I have a form that has a sections with 100 separate text boxes that require
> users input. Once the user inputs values it triggers various calculations to
> be carried out.
>
>   
>
> My question is, instead of having an After Update event triggered for each
> text box, which is a lot of code to manage, is it possible to execute the
> code in some other fashion that applies to these 100 text boxes only, but
> can be placed in one module?
>
>   
>
> There are other text boxes and combo boxes on this form, but I don't want
> the code to apply to them. Is this possible?
>
>   
>
> Thanks
>
>   
>
> Vlad
>
>   
>
>   
>
>
>



More information about the AccessD mailing list