Results 1 to 4 of 4

Thread: Why doesn't this work???

  1. #1
    Guest

    Post

    This is what I have...


    Private Sub savefile()
    MsgBox "Do you want to Submit another Problem", vbYesNo
    If vbYes Then
    clearfields
    Else
    MsgBox "We have been notified. Thank You."
    Unload Me
    End If
    End Sub

    This doesn't work...if I click no, it does the same thing as VBYES. What is wrong with this?

  2. #2
    Hyperactive Member PITBULLCJR's Avatar
    Join Date
    Nov 1999
    Location
    New York
    Posts
    408

    Post

    simple I got it put this in there

    dim happy as string

    Private Sub savefile()
    happy = MsgBox ("Do you want to Submit another Problem", vbYesNo)
    If happy = vbYes Then
    clearfields
    Else
    MsgBox "We have been notified. Thank You."
    Unload Me
    End If
    End Sub

    Sorry forgot () last time
    ------------------
    Sincerely,
    Chris
    :-) ;-)
    just have fun out there and live life to the fullest while it is still here
    Email [email protected]



    [This message has been edited by PITBULLCJR (edited 02-02-2000).]

  3. #3
    Junior Member
    Join Date
    Sep 1999
    Posts
    19

    Post

    try this

    Private Sub savefile()

    reply = MsgBox( "Do you want to Submit another Problem", vbYesNo)
    If reply = vbYes Then
    clearfields
    Else
    MsgBox "We have been notified. Thank You."
    Unload Me
    End If
    End Sub




    ------------------
    LM Ginn


  4. #4
    Guest

    Post

    Dang you guys are good! Thanks!

Posting Permissions

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



Click Here to Expand Forum to Full Width