Results 1 to 3 of 3

Thread: Enable Disable Textbox when something from combobox is picked

  1. #1
    Join Date
    May 2007
    Posts
    10

    Enable Disable Textbox when something from combobox is picked

    I placed the following code on the combobox and was trying to enable/disable a separate textbox based on the selection from the combobox and it doesn't work. For the most part, it stays disabled.

    Private Sub cboErrorDetect_Change()
    If cboErrorDetect.Value = "Fraud Ring Analysis" Then
    txtLoss_FRA.Enabled = True
    Else
    txtLoss_FRA.Enabled = False

    End If

    End Sub

    thanks!

  2. #2
    Join Date
    Oct 2006
    Location
    Maitland NSW Australia
    Posts
    275
    In your combo box cboErrorDetect_Change how many columns is in the drop down. If there is only on column then it should work but if the combo box is bound to another column thne you will require to change your code.

    Please list the columns of your combo box.

    Allan
    Allan

  3. #3
    Join Date
    May 2007
    Posts
    10

    enable disable

    1 column in the drop down. I got it to work when I put the Me!--why is that?

Posting Permissions

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