running a SQL Update without confirmation prompt from Access

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Nestor01
    New Member
    • Jul 2007
    • 19

    running a SQL Update without confirmation prompt from Access

    using Access 2007. I would like to call a sql update query with a macro, but I want it to update without prompting or otherwise notifying the user. Anyone got any ideas on this?
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    In VBA code you use
    DoCmd.SetWarnin gs False
    SQL Stuff Here
    DoCmd.SetWarnin gs True

    I assume there's a similar thing for macros.

    Comment

    • Nestor01
      New Member
      • Jul 2007
      • 19

      #3
      Originally posted by Rabbit
      In VBA code you use
      DoCmd.SetWarnin gs False
      SQL Stuff Here
      DoCmd.SetWarnin gs True

      I assume there's a similar thing for macros.
      huh, that's what the does....can't wait to try it!

      Comment

      • Nestor01
        New Member
        • Jul 2007
        • 19

        #4
        That did it.....I'm using it to solve a record lock issue by updating a field each time a record is opened. very clean, simple fix.

        Thanks.

        Comment

        • Rabbit
          Recognized Expert MVP
          • Jan 2007
          • 12517

          #5
          Not a problem. Good luck.

          Comment

          Working...