[AccessD] A Good Reason for a Class

Arthur Fuller fuller.artful at gmail.com
Mon Mar 3 04:46:10 CST 2008


Thanks, JC. Gustav put me in the right direction and I'm sure that your
classes will take me the rest of the way.

I have one other very minor issue, which is this. Since no edits are
permitted until the user clicks Update Data, then I need to place the focus
somewhere. I have a tab control on the form, so I guess I could place it
there. At the moment I have a very small textbox control where I place the
focus(and exclude it from the loops). Is there a better way?

Thanks,
Arthur

On 3/2/08, jwcolby <jwcolby at colbyconsulting.com> wrote:
>
> Yea, I'm here.  I have a bunch of WithEvent class demos on my site
> including
> some that change the background color.
>
> If this is to be generic, IOW it should work with any form and the
> controls
> on those forms, then you will want a form class that any form needing to
> do
> this will use.
>
> That form would use a control scanner to find all controls on the form.
> Additionally you would want a class for each control that you want the
> background to change, for example a clsCtlTxt, clsCtlCbo etc.  Once you
> have
> those, the form class is initialized by the form, the form class
> initializes
> a class instance for each control and you are off.  The form class would
> also control the form's AllowEdits property and any others you might need
> controlled.
>
> Poke around through my demos and I am sure you will find the skeleton for
> just this kind of thing.
>
>
> John W. Colby
>



More information about the AccessD mailing list