>I have this object with many textbox. All textbox are bound to a field. Ex:ControlSource=”MyAlias.MyField1” but in some case I need to change the alias to “IsAlias”.
>
>If I change the alias in the init() of the object I get a error because the alias “MyAlias” do not exist.
>Where is the best place to control the alias of controlsource?
>
>Passable solution:
>Having a subclass of the object with all control source change to the alias “IsAlias”.
>Coding the controlsource from the init() of the object for the right alias with a parameter.
>Using a cursor object in the form and control it from the loadevent() of the form.
>
>Any one can help me with this one!
You can load the new control source in the Form.Load or change the control source in the Form.Init.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer