Results 1 to 4 of 4
  1. #1
    newtoAccess is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Nov 2009
    Posts
    226

    How do I turn off Warning Message" in Macro design

    I am in the Macro design.

    I have set the following
    open a table.
    show all records
    select all records


    delete record
    Close and save table

    The above works good.
    However it gives me a "Warning that I am about to delete 243 records".

    Question: How and where do I turn off the warning?
    Last edited by newtoAccess; 12-06-2010 at 04:06 PM. Reason: solves

  2. #2
    ssanfu is offline Master of Nothing
    Windows 2K Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    The best way would be to use VBA. In VBA, you would use

    Currentdb.Execute "DELETE * FROM YourTableName", dbFailOnError

    If you must use a macro, there is an action "SetWarnings".

    show all records
    select all records
    SetWarnings --- NO << turns OFF warnings
    delete record
    SetWarnings --- YES << turns ON warnings
    Close and save table

  3. #3
    newtoAccess is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Nov 2009
    Posts
    226
    Ya, I am not very good at VBA or sql so I use as much automated stuff as possible. I don't understand when to use VBA or when to use SQL.

  4. #4
    newtoAccess is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Nov 2009
    Posts
    226
    Thanks
    that worked

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

Similar Threads

  1. Replies: 11
    Last Post: 11-26-2010, 10:53 PM
  2. Replies: 8
    Last Post: 11-12-2010, 10:55 AM
  3. Warning Message for Missed Date
    By maintt in forum Access
    Replies: 2
    Last Post: 07-23-2010, 09:05 AM
  4. Access warning message
    By John Southern in forum Access
    Replies: 2
    Last Post: 05-28-2010, 06:01 AM
  5. Records deleted with NO warning message.
    By evanscamman in forum Access
    Replies: 2
    Last Post: 12-14-2007, 11:18 PM

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