Results 1 to 3 of 3
  1. #1
    TheChairman is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Dec 2011
    Posts
    16

    "Yes to All" button in MsgBox

    Hello, I have a function that will delete records from a recordset based on selections from a listbox. The user can select multiple items from the listbox and the function will loop through the recordset deleting all the selected items. I have a prompt that pops up to confirm the deletion. The only problem is that if the user chooses to delete a large number of records, she will have to confirm each one. Is there any way that I can have a "Yes to All" button in the message box? It doesn't appear to exist in the button constants in Access 2007.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    To my knowledge, no. You'll likely need to create a form to use in place of the message box, and open it with acDialog to make it work like a message box. I suppose an alternative would be to use a Yes/No/Cancel message box and word your message accordingly (Yes=delete all, No=Delete the one, Cancel = abort).
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    SteveH2508 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Sep 2010
    Location
    Chelsea, London, England
    Posts
    116
    There are demos available on custom message box captions available on the Internet. I use one which involves API calls, hooks etc.. (not for the faint-hearted!)

    Try Googling custom message box captions or similar.

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

Similar Threads

  1. Replies: 13
    Last Post: 07-27-2011, 12:38 PM
  2. Replies: 16
    Last Post: 07-22-2011, 09:23 AM
  3. Replies: 6
    Last Post: 03-10-2011, 11:31 AM
  4. "Group By" causes "ODBC--Call Failed" error
    By kaledev in forum Queries
    Replies: 1
    Last Post: 03-09-2011, 02:43 PM
  5. Replies: 3
    Last Post: 02-23-2010, 06:32 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