Results 1 to 2 of 2

Thread: Referencing to a control

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    Brossard, Québec, Canada
    Posts
    241

    Post

    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 ?

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    Brossard, Québec, Canada
    Posts
    241

    Post

    ...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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width