Consulting

Results 1 to 10 of 10

Thread: Solved: User form problem

  1. #1

    Solved: User form problem

    I have set up a form with a combo box and 3 option buttons

    depending on whats selected from combo & which optionbutton is selected it goes off and executes that bit of the code.

    Tryna get it so if combo is selected but no optionbutton then it goes no further (well puts out a message 'select tier') but it seems to skip and go to the end of the code where there is a message that input was succesful.

    think I might have the syntax wrong?

    If Form.cmb = "" Then
    MsgBox "Select Portfolio"
    Exit Sub
    End If

    If Form.OptT1 = "" And Form.OptT2 = "" And Form.OptT3 = "" Then
    MsgBox "select tier"
    Exit Sub
    End If

    any ideas what I'm missing?

    thanks

  2. #2
    What does "Tryna" mean ???

    If not (Form.OptT1 or Form.OptT2 or Form.OptT3) Then
    MsgBox "select tier"
    Exit Sub
    End If
    2+2=9 ... (My Arithmetic Is Mental)

  3. #3
    thank - works fine - tryna s'pose its nothern UK slang for trying to.

    thanks again

  4. #4
    Just a tip, if you are posting on an international forum, then try to use standard international English so more people will understand you.
    2+2=9 ... (My Arithmetic Is Mental)

  5. #5
    Moderator VBAX Wizard lucas's Avatar
    Joined
    Jun 2004
    Location
    Tulsa, Oklahoma
    Posts
    7,323
    Location
    why not show your flags guys?
    Steve
    "Nearly all men can stand adversity, but if you want to test a man's character, give him power."
    -Abraham Lincoln

  6. #6
    Why ?
    2+2=9 ... (My Arithmetic Is Mental)

  7. #7
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Why not?
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  8. #8
    So I can pose as a Chilean ?
    2+2=9 ... (My Arithmetic Is Mental)

  9. #9
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    You can even pose as English if you want.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  10. #10
    S?, usted tiene raz?n, yo no hab?a pensado en esto
    2+2=9 ... (My Arithmetic Is Mental)

Posting Permissions

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