Results 1 to 3 of 3
  1. #1
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496

    Custom button captions msgbox

    Is it possible to create 3 custom caption buttons for a message box?

    I know I could do this as a form, but would like to know if it can be done in vba using msgbox...

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    The MsgBox command has two forms. One is just a simple popup with only one button - Okay. The other is a function that can have several buttons. The distinction is made by use of parens.

    MsgBox "Your document was printed."

    If MsgBox("Do you want to print?", vbYesNo) = vbYes Then
    DoCmd.Print
    End If

    Access VBA Help has more info on MsgBox as well as InputBox.
    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.

  3. #3
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496
    What I had in mind is my own box of options but without the need of a form - I have ended up using something else so this one is sorted. Cheers June - thanks

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

Similar Threads

  1. Replies: 1
    Last Post: 11-15-2013, 03:22 PM
  2. Replies: 3
    Last Post: 04-19-2013, 07:09 AM
  3. Custom button click to Built-in pop-up filter
    By LindaRuble in forum Reports
    Replies: 1
    Last Post: 08-23-2012, 07:00 PM
  4. Using table data as button captions
    By jecanne in forum Access
    Replies: 7
    Last Post: 11-13-2011, 04:56 PM
  5. Custom MsgBox
    By roccoIT in forum Programming
    Replies: 3
    Last Post: 07-06-2010, 10:43 AM

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