PDA

Click to See Complete Forum and Search --> : Referencing to a control


David Laplante
Nov 10th, 1999, 02:09 AM
Hi everybody, I have a question about referencing to a control on a form. I think I might be trying something that cannot be done, here is my problem:

I have a variable: Dim Formulaire as Form
and another: Dim Champ as Field

I want to assign a value to a textbox (Champ.name) which is on my form (Formulaire).
In other words, I would like the following to work: Formulaire."Champ.Name".value = "Hello"

Of course this is not a good syntax.

Can anyone help ?

David Laplante
Nov 10th, 1999, 03:57 AM
...just noticed this post should have been posted in another forum. Sorry about this. But still havn't found any interesting info about this anywhere else.

I sure know how to loop through all controls of a collection (for each ctl in form.controls). The problem is I would like to CREATE such a collection myself. (Ex.: I will add to a collection all the textboxes that the user have modified)

Thanks.