removing warning msgs when deleting reccords

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ashitaka65
    New Member
    • Jul 2007
    • 24

    removing warning msgs when deleting reccords

    Hello,

    I’m using
    DoCmd.DoMenuIte m acFormBar, acEditMenu, 8, , acMenuVer70
    DoCmd.DoMenuIte m acFormBar, acEditMenu, 6, , acMenuVer70

    in a line of code to delete the current record but when I do ,it asks me if I’m sure I want to delete it. is there a way to get rid of that warning msg and just delete the record?
    Thank you in advance =D
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    DoCmd.SetWarnin gs False
    ...
    DoCmd.SetWarnin gs True

    Comment

    • ashitaka65
      New Member
      • Jul 2007
      • 24

      #3
      ohhh wow that simple =D, hehe thx so much

      Comment

      • Rabbit
        Recognized Expert MVP
        • Jan 2007
        • 12517

        #4
        No problem, good luck.

        Comment

        • missinglinq
          Recognized Expert Specialist
          • Nov 2006
          • 3533

          #5
          And always, always, always remember the

          DoCmd.SetWarnin gs True

          part! Otherwise warnings you need to see may be suppressed as well!

          Linq ;0)>

          Comment

          • ashitaka65
            New Member
            • Jul 2007
            • 24

            #6
            hehe yupp i knew that much :P :P
            thx anyway =D

            Comment

            Working...