Results 1 to 7 of 7
  1. #1
    Manone is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2017
    Posts
    3

    Question Modifier queries doen’t ask, all answers become yes.


    Code:
     I would like to solve that my modifier queries doesn’t ask or give informations, but the answers become ‘yes’. How can I solved it? Thank you for your help!

  2. #2
    Bulzie is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    Nov 2015
    Posts
    1,511
    Are you trying to surpress the notification from say an Update or Append query? If so you can use:
    Docmd.SetWarnings False
    Run Update Query
    Docmd.SetWarnings True

  3. #3
    Manone is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2017
    Posts
    3
    Thank you, but it is not good for me.
    for example delete queries give information about deleting and the basic answer is "no", and the Docmd.SetWarnings False take the basic answer, but I want always "yes".

  4. #4
    isladogs's Avatar
    isladogs is offline Access MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,204
    So you want to run the queries or SQL code with no warnings?
    For SQL code use CurrentDB.Execute instead of DoCmd

  5. #5
    Manone is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2017
    Posts
    3
    Hi. I want to run queries from qbe grid, but docmd was found in macro commands and I tried it so it is not good. I’ll try your idea.
    Thank you

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    If you want to run queries from the navigation pane or design view, you can turn off the warnings in File/Options/Advanced/Confirm. I personally never use that. It's Access-wide, not database specific, so other databases will be affected. It's also user specific, so you can't count on other users having that setting. I also never let users access the navigation pane or design view.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  7. #7
    Bulzie is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    Nov 2015
    Posts
    1,511
    Don't understand this part:
    for example delete queries give information about deleting and the basic answer is "no", and the Docmd.SetWarnings False take the basic answer, but I want always "yes".
    If you run a delete query with SetWarnings to False, then it will delete them without giving you the box to select either Yes or No. Maybe explain again what you want to happen when someone runs a query?

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

Similar Threads

  1. How Do I...denote who answers what questions...
    By kennyrogersjr in forum Access
    Replies: 2
    Last Post: 01-01-2011, 11:29 AM
  2. Multiple answers in one field?
    By stubeard in forum Access
    Replies: 1
    Last Post: 11-04-2010, 09:40 AM
  3. Replies: 1
    Last Post: 10-20-2009, 02:05 PM
  4. Noob needing answers
    By sartan2002 in forum Access
    Replies: 0
    Last Post: 10-13-2009, 08:39 AM
  5. Change the display of Yes/No answers
    By winter in forum Forms
    Replies: 2
    Last Post: 08-11-2009, 09:06 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