Results 1 to 4 of 4
  1. #1
    Kundan is offline Competent Performer
    Windows XP Access 2013 32bit
    Join Date
    Mar 2018
    Posts
    155

    YesNo Message Box

    In the YesNo Message Box the default focus is on the YES button , if I want the default focus on NO button , what should I do?

  2. #2
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,933
    when you call the message box, you set it in the parameters e.g.

    MsgBox "is this what you want?", vbYesNo + vbDefaultButton2

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Review https://support.office.com/en-us/art...6-BA9F1749F4C0

    MsgBox("text", vbDefaultButton2 + vbYesNo, "text")
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  4. #4
    Kundan is offline Competent Performer
    Windows XP Access 2013 32bit
    Join Date
    Mar 2018
    Posts
    155
    Quote Originally Posted by June7 View Post
    Review https://support.office.com/en-us/art...6-BA9F1749F4C0

    MsgBox("text", vbDefaultButton2 + vbYesNo, "text")
    Thanks a lot!!!!! GOD BLESS YOU!!!!!!!!!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 3
    Last Post: 05-13-2018, 12:59 AM
  2. Replies: 7
    Last Post: 03-17-2016, 05:53 PM
  3. Replies: 2
    Last Post: 01-23-2014, 12:40 PM
  4. Replies: 15
    Last Post: 11-01-2013, 03:24 PM
  5. Replies: 9
    Last Post: 09-26-2012, 12:20 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums