vbYesNo

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rgsw
    New Member
    • Jul 2006
    • 29

    vbYesNo

    Hi -

    How can you have vbYes say something else like "update field" and vb no say "don't update field", instead of yes no buttons?

    Thanks.
  • Tanis
    New Member
    • Mar 2006
    • 143

    #2
    I don't think you can change the text of Yes No. You can however, add your own message.

    Code:
          Dim strMsg As String
            strMsg = strMsg & "Would you like to update it?"
            
                If MsgBox(strMsg, vbYesNo, "Updated") = vbYes Then
                
                MsgBox ("Updated")
                Else
                MsgBox ("Not updated")

    Comment

    • rgsw
      New Member
      • Jul 2006
      • 29

      #3
      Originally posted by Tanis
      I don't think you can change the text of Yes No. You can however, add your own message.

      Code:
            Dim strMsg As String
              strMsg = strMsg & "Would you like to update it?"
              
                  If MsgBox(strMsg, vbYesNo, "Updated") = vbYes Then
                  
                  MsgBox ("Updated")
                  Else
                  MsgBox ("Not updated")
      Thanks, I'll give that a try.

      Comment

      Working...