Results 1 to 3 of 3
  1. #1
    5 Star Lounger
    Join Date
    Jan 2001
    Location
    austin, Texas, USA
    Posts
    1,029
    Thanks
    0
    Thanked 0 Times in 0 Posts

    setting form field value (A2K, Win2KPro)

    I keep forgetting how to do this! I have a combo box on a form and want to set a textbox to display a value based on what has been selected in the Combo. If I put a calculated field in a query and base the form on that I get 'Recordset Not Updateale'.

    How do I set a field on a form to display a value based on user selection on another control in the form?

    TIA
    <img src=/S/compute.gif border=0 alt=compute width=40 height=20>

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: setting form field value (A2K, Win2KPro)

    Say that your combo box is named cboSomething. If you want a text box to refer to the bound value of the combo box, use

    =[cboSomething]

    as Control Source. If the combo box has multiple columns, you can refer to a particular column. Numbering starts at 0, so to refer to the 2nd column, use

    =[cboSomething].[Column](1)

  3. #3
    5 Star Lounger
    Join Date
    Jan 2001
    Location
    austin, Texas, USA
    Posts
    1,029
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: setting form field value (A2K, Win2KPro)

    thanks -- an easy one for hans!

Posting Permissions

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