Results 1 to 2 of 2
  1. #1
    Gold Lounger
    Join Date
    Jan 2004
    Location
    Italy
    Posts
    3,245
    Thanks
    0
    Thanked 0 Times in 0 Posts

    UNABLE COMANDBUTT (2000 sr 1)

    I have this userform....
    I would want to insert in the event change txtbox28 this condition:
    if in the txtbox is present the value L0785_TOTALE unable commandbutt 9 and commandbutt 10
    if in the txtbox is present the value L0785_PAGATI unable commandbutt 8 and commandbutt 10
    if in the txtbox is present the value L0785_CDI_50 unable commandbutt 8 and commandbutt 9
    .....

  2. #2
    WS Lounge VIP sdckapr's Avatar
    Join Date
    Jul 2002
    Location
    Pittsburgh, Pennsylvania, USA
    Posts
    11,225
    Thanks
    14
    Thanked 342 Times in 335 Posts

    Re: UNABLE COMANDBUTT (2000 sr 1)

    How about this (I asumed by "unable" you mean "Disable". If you mean "Enable" then change each False to True)

    <pre>Select Case txtbox28
    Case Is = "L0785_TOTALE"
    commandbutt9.enable = false
    commandbutt10.enable = false
    Case Is = "L0785_PAGATI"
    commandbutt8.enable = false
    commandbutt10.enable = false
    Case Is = "L0785_CDI_50"
    commandbutt8.enable = false
    commandbutt9.enable = false
    End Select</pre>


    Steve

Posting Permissions

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