Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2004
    Posts
    364

    Unanswered: Need a combo box to disable a text box

    I need to use a combo box with YES or No to disable an empty text box when NO is selected in the combo box next to it.

    Cheers

    Tom

  2. #2
    Join Date
    Aug 2004
    Location
    Cary, NC
    Posts
    264
    assume combobox is called cboEnable and text box is called txtField

    then as a combobox event, something like
    Code:
       
    if cboEnable = "Yes" then
    txtField.Enabled = true
    else
    txtField.Enable = false
    end if

    or test for no explicitly

    Steve

  3. #3
    Join Date
    Aug 2004
    Posts
    364
    Thanks for that, it blanks the text box when set to NO, but how do you get it to re-enable the text box when YES is re-selected?

Posting Permissions

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